Accept URLs for describe, validate, and convert input #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for using URLs in addition to file paths as the input for the
describe
,validate
, andconvert
commands.# gpq describe https://github.com/opengeospatial/geoparquet/raw/v1.0.0/examples/example.parquet ╭────────────────────┬────────┬────────────┬────────────┬─────────────┬──────────┬───────────────────────┬───────────────────────────┬──────────────────────────╮ │ COLUMN │ TYPE │ ANNOTATION │ REPETITION │ COMPRESSION │ ENCODING │ GEOMETRY TYPES │ BOUNDS │ DETAIL │ ├────────────────────┼────────┼────────────┼────────────┼─────────────┼──────────┼───────────────────────┼───────────────────────────┼──────────────────────────┤ │ pop_est │ double │ │ 0..1 │ snappy │ │ │ │ │ │ continent │ binary │ string │ 0..1 │ snappy │ │ │ │ │ │ name │ binary │ string │ 0..1 │ snappy │ │ │ │ │ │ iso_a3 │ binary │ string │ 0..1 │ snappy │ │ │ │ │ │ gdp_md_est │ int64 │ │ 0..1 │ snappy │ │ │ │ │ │ geometry │ binary │ │ 0..1 │ snappy │ WKB │ Polygon, MultiPolygon │ [-180, -90, 180, 83.6451] │ edges │ planar │ │ │ │ │ │ │ │ │ │ crs │ WGS 84 (CRS84) │ ├────────────────────┼────────┴────────────┴────────────┴─────────────┴──────────┴───────────────────────┴───────────────────────────┴──────────────────────────┤ │ Rows │ 5 │ │ Row Groups │ 1 │ │ GeoParquet Version │ 1.0.0 │ ╰────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
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.