Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include GeoArrow metadata on constructed Arrow table #52

Merged
merged 1 commit into from
May 13, 2024

Conversation

kylebarron
Copy link
Collaborator

Change list

  • Include geoarrow.wkb on the Arrow field metadata to declare that the geometry binary column is WKB-encoded and in WGS84 CRS.

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

@kylebarron kylebarron requested a review from TomAugspurger May 13, 2024 19:54
@kylebarron kylebarron merged commit 61282d1 into main May 13, 2024
1 check passed
@kylebarron kylebarron deleted the kyle/include-geoarrow-metadata branch May 13, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants