planetlabs / gpq

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

Optionally use stdin and stdout for validate, describe, and convert commands #79

Closed tschaub closed 1 year ago

tschaub commented 1 year ago

This makes it so the commands optionally read from stdin and write to stdout.

Examples:

# validate geoparquet from stdin
cat example.parquet | gpq validate

# describe geoparquet from stdin
cat example.parquet | gpq describe

# convert geoparquet from stdin to geojson stdout
cat example.parquet | gpq convert --from geoparquet --to geojson

# convert geojson to geoparquet stdout
gpq convert example.geojson --to geoparquet

Fixes #78.

bdon commented 1 year ago

Tested locally, LGTM