stac-utils / stac-geoparquet

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

Include GeoArrow metadata on constructed Arrow table #52

Closed kylebarron closed 5 months ago

kylebarron commented 5 months ago

Change list

This means that the data produced by stac-geoparquet is interoperable with other Arrow-based geospatial tools, for example, Lonboard:

import lonboard
from stac_geoparquet.arrow import parse_stac_items_to_arrow

with open(HERE / "data" / f"naip-pc.json") as f:
    items = json.load(f)

table = parse_stac_items_to_arrow(items)
lonboard.viz(table)
image

cc @bitner