ssb-sgis 1.1.7__py3-none-any.whl → 1.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sgis/io/dapla_functions.py +4 -7
- {ssb_sgis-1.1.7.dist-info → ssb_sgis-1.1.8.dist-info}/METADATA +1 -1
- {ssb_sgis-1.1.7.dist-info → ssb_sgis-1.1.8.dist-info}/RECORD +5 -5
- {ssb_sgis-1.1.7.dist-info → ssb_sgis-1.1.8.dist-info}/LICENSE +0 -0
- {ssb_sgis-1.1.7.dist-info → ssb_sgis-1.1.8.dist-info}/WHEEL +0 -0
sgis/io/dapla_functions.py
CHANGED
|
@@ -128,7 +128,7 @@ def read_geopandas(
|
|
|
128
128
|
return gpd.GeoDataFrame(
|
|
129
129
|
_read_partitioned_parquet(
|
|
130
130
|
gcs_path,
|
|
131
|
-
read_func=
|
|
131
|
+
read_func=pq.read_table,
|
|
132
132
|
file_system=file_system,
|
|
133
133
|
mask=mask,
|
|
134
134
|
filters=filters,
|
|
@@ -145,7 +145,7 @@ def read_geopandas(
|
|
|
145
145
|
read_func = gpd.read_file
|
|
146
146
|
|
|
147
147
|
with file_system.open(gcs_path, mode="rb") as file:
|
|
148
|
-
|
|
148
|
+
return _read_geopandas(
|
|
149
149
|
file,
|
|
150
150
|
read_func=read_func,
|
|
151
151
|
file_format=file_format,
|
|
@@ -153,8 +153,6 @@ def read_geopandas(
|
|
|
153
153
|
**kwargs,
|
|
154
154
|
)
|
|
155
155
|
|
|
156
|
-
return df
|
|
157
|
-
|
|
158
156
|
|
|
159
157
|
def _read_geopandas_from_iterable(
|
|
160
158
|
paths, mask, file_system, use_threads, pandas_fallback, **kwargs
|
|
@@ -763,17 +761,16 @@ def _read_partitioned_parquet(
|
|
|
763
761
|
|
|
764
762
|
if results:
|
|
765
763
|
if all(isinstance(x, DataFrame) for x in results):
|
|
766
|
-
|
|
764
|
+
return pd.concat(results)
|
|
767
765
|
else:
|
|
768
766
|
geo_metadata = _get_geo_metadata(next(iter(child_paths)), file_system)
|
|
769
|
-
|
|
767
|
+
return _arrow_to_geopandas(
|
|
770
768
|
pyarrow.concat_tables(
|
|
771
769
|
results,
|
|
772
770
|
promote_options="permissive",
|
|
773
771
|
),
|
|
774
772
|
geo_metadata,
|
|
775
773
|
)
|
|
776
|
-
return results
|
|
777
774
|
|
|
778
775
|
# add columns to empty DataFrame
|
|
779
776
|
first_path = next(iter(child_paths + [path]))
|
|
@@ -21,7 +21,7 @@ sgis/geopandas_tools/sfilter.py,sha256=SLcMYprQwnY5DNo0R7TGXk4m6u26H8o4PRn-RPhme
|
|
|
21
21
|
sgis/helpers.py,sha256=_h7ke9hJrRNhHW-ZX3gA95fOrX2s1ADKBMxc94p2F4Q,9627
|
|
22
22
|
sgis/io/__init__.py,sha256=uyBr20YDqB2bQttrd5q1JuGOvX32A-MSvS7Wmw5f5qg,177
|
|
23
23
|
sgis/io/_is_dapla.py,sha256=wmfkSe98IrLhUg3dtXZusV6OVC8VlY1kbc5EQDf3P-Q,358
|
|
24
|
-
sgis/io/dapla_functions.py,sha256=
|
|
24
|
+
sgis/io/dapla_functions.py,sha256=W7FNZErQb9j9iHRk5sui2cP2uHr136rrmRrpP2CFixc,30023
|
|
25
25
|
sgis/io/opener.py,sha256=HWO3G1NB6bpXKM94JadCD513vjat1o1TFjWGWzyVasg,898
|
|
26
26
|
sgis/io/read_parquet.py,sha256=FvZYv1rLkUlrSaUY6QW6E1yntmntTeQuZ9ZRgCDO4IM,3776
|
|
27
27
|
sgis/maps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -59,7 +59,7 @@ sgis/raster/indices.py,sha256=-J1HYmnT240iozvgagvyis6K0_GHZHRuUrPOgyoeIrY,223
|
|
|
59
59
|
sgis/raster/regex.py,sha256=kYhVpRYzoXutx1dSYmqMoselWXww7MMEsTPmLZwHjbM,3759
|
|
60
60
|
sgis/raster/sentinel_config.py,sha256=nySDqn2R8M6W8jguoBeSAK_zzbAsqmaI59i32446FwY,1268
|
|
61
61
|
sgis/raster/zonal.py,sha256=D4Gyptw-yOLTCO41peIuYbY-DANsJCG19xXDlf1QAz4,2299
|
|
62
|
-
ssb_sgis-1.1.
|
|
63
|
-
ssb_sgis-1.1.
|
|
64
|
-
ssb_sgis-1.1.
|
|
65
|
-
ssb_sgis-1.1.
|
|
62
|
+
ssb_sgis-1.1.8.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
|
|
63
|
+
ssb_sgis-1.1.8.dist-info/METADATA,sha256=dwqSmleqbejdaqfpBPfqbVSb0W_PIIQ0adnXiK7ILV0,11740
|
|
64
|
+
ssb_sgis-1.1.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
65
|
+
ssb_sgis-1.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|