Skip to content

Commit 000e742

Browse files
ENH: support GeoParquet 1.0.0 spec (#3067)
1 parent 74f88a1 commit 000e742

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Version 0.14.1
4+
5+
- The Parquet and Feather IO functions now support the latest 1.0.0 version
6+
of the GeoParquet specification (geoparquet.org) (#2663).
7+
8+
39
## Version 0.14 (Sep 15, 2023)
410

511
GeoPandas will use Shapely 2.0 by default instead of PyGEOS when both Shapely >= 2.0 and

doc/source/docs/user_guide/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ the spatial information.
276276

277277
.. note::
278278

279-
This is tracking version 1.0.0-beta.1 of the GeoParquet specification at:
279+
This is tracking version 1.0.0 of the GeoParquet specification at:
280280
https://github.com/opengeospatial/geoparquet.
281281

282282
Previous versions are still supported as well. By default, the latest

geopandas/io/arrow.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
import geopandas
1313
from .file import _expand_user
1414

15-
METADATA_VERSION = "1.0.0-beta.1"
16-
SUPPORTED_VERSIONS = ["0.1.0", "0.4.0", "1.0.0-beta.1"]
15+
METADATA_VERSION = "1.0.0"
16+
SUPPORTED_VERSIONS = ["0.1.0", "0.4.0", "1.0.0-beta.1", "1.0.0"]
1717
# reference: https://github.com/opengeospatial/geoparquet
1818

1919
# Metadata structure:
@@ -74,7 +74,7 @@ def _create_metadata(df, schema_version=None):
7474
Parameters
7575
----------
7676
df : GeoDataFrame
77-
schema_version : {'0.1.0', '0.4.0', '1.0.0-beta.1', None}
77+
schema_version : {'0.1.0', '0.4.0', '1.0.0-beta.1', '1.0.0', None}
7878
GeoParquet specification version; if not provided will default to
7979
latest supported version.
8080
@@ -295,7 +295,7 @@ def _to_parquet(
295295
296296
Requires 'pyarrow'.
297297
298-
This is tracking version 1.0.0-beta.1 of the GeoParquet specification at:
298+
This is tracking version 1.0.0 of the GeoParquet specification at:
299299
https://github.com/opengeospatial/geoparquet. Writing older versions is
300300
supported using the `schema_version` keyword.
301301
@@ -312,7 +312,7 @@ def _to_parquet(
312312
output except `RangeIndex` which is stored as metadata only.
313313
compression : {'snappy', 'gzip', 'brotli', None}, default 'snappy'
314314
Name of the compression to use. Use ``None`` for no compression.
315-
schema_version : {'0.1.0', '0.4.0', '1.0.0-beta.1', None}
315+
schema_version : {'0.1.0', '0.4.0', '1.0.0', None}
316316
GeoParquet specification version; if not provided will default to
317317
latest supported version.
318318
**kwargs
@@ -346,7 +346,7 @@ def _to_feather(df, path, index=None, compression=None, schema_version=None, **k
346346
347347
Requires 'pyarrow' >= 0.17.
348348
349-
This is tracking version 1.0.0-beta.1 of the GeoParquet specification for
349+
This is tracking version 1.0.0 of the GeoParquet specification for
350350
the metadata at: https://github.com/opengeospatial/geoparquet. Writing
351351
older versions is supported using the `schema_version` keyword.
352352
@@ -364,7 +364,7 @@ def _to_feather(df, path, index=None, compression=None, schema_version=None, **k
364364
compression : {'zstd', 'lz4', 'uncompressed'}, optional
365365
Name of the compression to use. Use ``"uncompressed"`` for no
366366
compression. By default uses LZ4 if available, otherwise uncompressed.
367-
schema_version : {'0.1.0', '0.4.0', '1.0.0-beta.1', None}
367+
schema_version : {'0.1.0', '0.4.0', '1.0.0', None}
368368
GeoParquet specification version for the metadata; if not provided
369369
will default to latest supported version.
370370
kwargs
@@ -535,7 +535,7 @@ def _read_parquet(path, columns=None, storage_options=None, **kwargs):
535535
columns, the first available geometry column will be set as the geometry
536536
column of the returned GeoDataFrame.
537537
538-
Supports versions 0.1.0, 0.4.0 and 1.0.0-beta.1 of the GeoParquet
538+
Supports versions 0.1.0, 0.4.0 and 1.0.0 of the GeoParquet
539539
specification at: https://github.com/opengeospatial/geoparquet
540540
541541
If 'crs' key is not present in the GeoParquet metadata associated with the
@@ -632,7 +632,7 @@ def _read_feather(path, columns=None, **kwargs):
632632
columns, the first available geometry column will be set as the geometry
633633
column of the returned GeoDataFrame.
634634
635-
Supports versions 0.1.0, 0.4.0 and 1.0.0-beta.1 of the GeoParquet
635+
Supports versions 0.1.0, 0.4.0 and 1.0.0 of the GeoParquet
636636
specification at: https://github.com/opengeospatial/geoparquet
637637
638638
If 'crs' key is not present in the Feather metadata associated with the
5.71 KB
Binary file not shown.
7.56 KB
Binary file not shown.

0 commit comments

Comments
 (0)