planetlabs / gpq

Utility for working with GeoParquet
https://planetlabs.github.io/gpq/
Apache License 2.0
144 stars 8 forks source link

Accept an alternative primary column name when reading Parquet #36

Closed tschaub closed 1 year ago

tschaub commented 1 year ago

This adds an --input-primary-column argument to the convert command. When reading a Parquet file without "geo" metadata, the primary geometry column defaults to geometry. The new argument can be used to change this.

gpq convert --input-primary-column geom example.parquet example.geoparquet

Fixes #33.

aborruso commented 1 year ago

Hi @tschaub I'm using 0.11.0 version.

When I run

gpq convert --input-primary-column geom input.parquet output.parquet

I have gpq: error: unknown flag --input-primary-column.

Is it normal?

Thank you

P.S. thank you for this great tool

tschaub commented 1 year ago

@aborruso - Unfortunately, this feature is not yet released. There are a few issues related to rewriting the Parquet schema that I'm working to address. This is turning into a largish effort. But I'm hoping to push out a release that includes this feature and the other fixes in the next few weeks.