You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bbox correctly has a SW longitude that is to the east of the NE longitude, as the bbox should cross the antimeridian. The bbox does cover the geometry (I think?), however, the bbox spans ~222 deg longitude, when it should span ~3 deg.
I don't have an example of the proj:bbox for this, but I can see from the code that it's wrong, since it does a simple min/max calculation, not accounting for the SW-east-of-NE longitude issue with antimeridian-spanning scenes.
Describe the bug
bbox and proj:bbox are incorrect for antimeridian-crossing scenes
For example, this item https://earth-search.aws.element84.com/v1/collections/landsat-c2-l2/items/LC09_L2SR_074069_20231202_02_T2
has geometry
but bbox
This bbox correctly has a SW longitude that is to the east of the NE longitude, as the bbox should cross the antimeridian. The bbox does cover the geometry (I think?), however, the bbox spans ~222 deg longitude, when it should span ~3 deg.
I don't have an example of the proj:bbox for this, but I can see from the code that it's wrong, since it does a simple min/max calculation, not accounting for the SW-east-of-NE longitude issue with antimeridian-spanning scenes.
To reproduce
Expected behavior
The bbox and proj:bbox compactly represent the antimeridian-spanning scene geometry.
The text was updated successfully, but these errors were encountered: