Skip to content

Handling of "bbox" and "crs" in geo metadata for "proj:geometry" #160

@scottyhq

Description

@scottyhq

There's currently a difference in how rustac-py versus stac-geoparquet write geo-metadata. Specifically, rustac-py writes out a bbox into geo metadata and does not set "crs":null, which can confuse downstream tools like GDAL

stac-geoparquet:

        "proj:geometry": {
            "encoding": "WKB",
            "geometry_types": [],
            "crs": null
        }

see also: https://github.com/stac-utils/stac-geoparquet/blob/8dca071c146effd5d71392ddb5e6292321d4bb55/stac_geoparquet/arrow/_to_parquet.py#L167-L179

rustac-py:

        "proj:geometry": {
            "encoding": "WKB",
            "geometry_types": [
                "Polygon"
            ],
            "bbox": [
                239993.99966284665,
                4149993.9999659467,
                780005.999984643,
                4240006.000035326
            ]
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions