-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working