planetlabs / gpq

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

gpq convert creates invalid file #45

Closed m-mohr closed 11 months ago

m-mohr commented 1 year ago

I used gpq convert to create a geoparquet file from a parquet file: gpq convert C:\Dev\rapidai4eo\stac-v1.0\rapidai4eo_v1_source_pf\pf.parquet rapidai4eo_v1_source_pf_snappy.geoparquet --compression="snappy" Afterwards, I ran gpq validate on it and the new file is invalid. It is missing the geoparquet version number (empty string).

v0.11.0 on Windows 10

m-mohr commented 1 year ago

I don't really understand Go, but I suspect that maybe above https://github.com/planetlabs/gpq/blob/main/internal/geoparquet/geoparquet.go#L404 the Version number must be set?

tschaub commented 11 months ago

@m-mohr - this should be fixed now, but I'd like to validate it before cutting a release. Do you happen to have that C:\Dev\rapidai4eo\stac-v1.0\rapidai4eo_v1_source_pf\pf.parquet file around so I could test it?

m-mohr commented 11 months ago

Thanks, Tim! I don't think I have it anymore, but I can also only check once I'm back from the STAC sprint, i.e. next week Wed. So maybe just go ahead with the release?!

tschaub commented 11 months ago

This should be fixed in the latest release. Please reopen if you find an issue.