You can also validate given an input URL (with or without the --metadata-only flag, with the flag skips scanning all geometries):
# gpq validate https://github.com/opengeospatial/geoparquet/raw/v1.0.0/examples/example.parquet --metadata-only
Summary: Passed 16 checks.
Metadata and schema checks only. Skipped 4 data scanning checks.
✓ file must include a "geo" metadata key
✓ metadata must be a JSON object
✓ metadata must include a "version" string
✓ metadata must include a "primary_column" string
✓ metadata must include a "columns" object
✓ column metadata must include the "primary_column" name
✓ column metadata must include a valid "encoding" string
✓ column metadata must include a "geometry_types" list
✓ optional "crs" must be null or a PROJJSON object
✓ optional "orientation" must be a valid string
✓ optional "edges" must be a valid string
✓ optional "bbox" must be an array of 4 or 6 numbers
✓ optional "epoch" must be a number
✓ geometry columns must not be grouped
✓ geometry columns must be stored using the BYTE_ARRAY parquet type
✓ geometry columns must be required or optional, not repeated
This adds support for using URLs in addition to file paths as the input for the
describe
,validate
, andconvert
commands.You can also validate given an input URL (with or without the
--metadata-only
flag, with the flag skips scanning all geometries):And the same works for the
convert
command:This doesn't yet add support for reading from blob storage. I'll add that separately.
Fixes #93.