Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow writing either GeoParquet 1.0 or GeoParquet 1.1 schema metadata #61

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

kylebarron
Copy link
Collaborator

Adds a schema_version argument that decides whether or not GeoParquet 1.1-specific metadata should be included in the written file.

Note that the exact keyword arg schema_version was chosen to match the parameter name in GeoPandas' to_parquet.

Fixes #60

cc @gadomski

Copy link
Member

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but is there more work to be done w/ the type of the bbox data themselves? Over in stac-utils/stac-rs#256 I was finding that I couldn't even read data that had been written in 1.1.0-dev format if I was expecting 1.0.0 ... but maybe that was just down to the metadata (I'm new to arrow/parquet so my understanding is incomplete).

stac_geoparquet/arrow/_to_parquet.py Outdated Show resolved Hide resolved
stac_geoparquet/arrow/_to_parquet.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Pete's comments are addressed.

stac_geoparquet/arrow/_to_parquet.py Outdated Show resolved Hide resolved
stac_geoparquet/arrow/_to_parquet.py Outdated Show resolved Hide resolved
@kylebarron kylebarron merged commit 768df20 into main Jun 20, 2024
1 check passed
@kylebarron kylebarron deleted the kyle/write-geoparquet-1.0 branch June 25, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to write GeoParquet 1.0 metadata
3 participants