stac-utils / stac-geoparquet

Convert STAC items between JSON, GeoParquet, pgstac, and Delta Lake.
https://stac-utils.github.io/stac-geoparquet/
MIT License
78 stars 9 forks source link

Test files with sequence of items #39

Closed kylebarron closed 4 months ago

kylebarron commented 5 months ago

Right now, the only JSON files in the fixtures directory are individual STAC items. It would be great to have a sequence of files from a single collection so that we could test equality of round-tripping from JSON to Parquet and back to JSON. There's a naip.parquet file in the fixtures with 5 rows but it's not clear where that file was created from.

Any preference over where these test Items should come from?

TomAugspurger commented 5 months ago

If possible, I'd like to minimize the number of binary files in the repo (and maybe remove naip.parquet when possible).

Happy to add a handful of JSON / ndjson files with some more STAC items for testing.

No preference on the source.

kylebarron commented 5 months ago

IMO I'd be happy to remove binary files entirely and only check in JSON test artifacts. Then we can primarily verify the round trip of the json and verify the schema of the constructed parquet files.