Skip to content

Antimeridian-crossing scenes produce incorrectly-wound polygons #55

@philvarner

Description

@philvarner

Describe the bug

Scenes that cross the antimeridian have polygons that are wound in the opposite direction that they should be. For example, this
scene: s3://sentinel-s1-l1c/GRD/2023/3/28/EW/DH/S1A_EW_GRDM_1SDH_20230328T183038_20230328T183148_047848_05BFC9_57B7/productInfo.json

produces the polygon:

{"type": "Polygon", "coordinates": [[[-174.028839, 66.097771], [176.813492, 66.944458], [178.793777, 71.130539], [-170.280487, 70.166634], [-174.028839, 66.097771]]]}

which is wound counterclockwise for an antimeridian-crossing polygon.

To reproduce

Run this package on s3://sentinel-s1-l1c/GRD/2023/3/28/EW/DH/S1A_EW_GRDM_1SDH_20230328T183038_20230328T183148_047848_05BFC9_57B7/productInfo.json

Expected behavior

The polygon is wound correctly wrt an antimeridian spanning scene.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions