Skip to content

Bounding box validity around the antimeridian #21

@ianthetechie

Description

@ianthetechie

It looks like shapely will "assume" a few things about geometries, so our current implementation writes an invalid bbox for Fiji.

The GeoParquet spec states that we should use the same rules as GeoJSON for bounding boxes, specifically calling out the antimeridian edge case. The GeoJSON RFC describes this here: https://datatracker.ietf.org/doc/html/rfc7946#section-5.2.

In experimenting with the antimeridian library, it seems to fix these cases.

Original bounding box (spans the entire globe longitudinally, which is not very helpful):

{'xmin': -180.0, 'ymin': -21.943428, 'xmax': 180.0, 'ymax': -12.261387}

Corrected bounding box (starts west of the antimeridian):

{'xmin': 176.72958, 'ymin': -21.943428, 'xmax': -178.0035, 'ymax': -12.261387}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions