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

Fix issue converting Parquet with WKT geometry #35

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Fix issue converting Parquet with WKT geometry #35

merged 2 commits into from
Jun 21, 2023

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Jun 21, 2023

Previously, when converting an input Parquet file to a GeoParquet file, the same metadata struct would be used to read the input metadata and write the output metadata. When the input geometry type is WKT, the output is converted to WKB. During writing, the metadata was modified after writing the first geometry. This meant that reading the second geometry failed since it was not WKB (but the modified metadata indicated that it was).

This change ensures that the input metadata is cloned before creating modified output metadata.

Fixes #34.

@tschaub tschaub merged commit 58436bf into main Jun 21, 2023
2 checks passed
@tschaub tschaub deleted the convert-wkt branch June 21, 2023 16:41
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.

Unable to convert Parquet files with WKT geometry
1 participant