planetlabs / gpq

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

Improved validation error handling #89

Closed tschaub closed 9 months ago

tschaub commented 9 months ago

Previously, if the "crs" property in the geo metadata was not the expected type (an object), the validate command would fail with a bad error message (see #86). This change makes it so an unexpected "crs" type is a fatal error, so additional rules that require valid metadata are not run.

In addition, this change updates the describe output so it includes some hints about what to do if the geo metadata is present but looks invalid. The new --metadata-only flag for the describe command can be used to dump the geo metadata without trying to parse it.

Fixes #86.