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

Antimeridian-crossing scenes produce incorrectly-wound polygons #55

Open
philvarner opened this issue May 31, 2023 · 0 comments
Open

Antimeridian-crossing scenes produce incorrectly-wound polygons #55

philvarner opened this issue May 31, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@philvarner
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant