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
On the Exploration page, when the map is zoomed to the point where there are multiple world copies, it is possible to draw an AOI on a map that falls outside the -180,180 range.
In the image below, we can see 3 "full maps", each with its own coordinate range. Since I drew the AOI in the leftmost one, the API will return 0 features.
The following payload will cause 0 features to be returned on a POST https://test-stac.delta-backend.com/search
This becomes all the more problematic when the AOI crosses into another map, which is very possible if the users' AIO is over the pacific ocean.
A solution would be to cut the polygons and then bring the part that is "outside" the map into the correct range. In this way we'd be submitting the correct payload.
However, is this something that the API should handle? Should it be able to handle coordinates outside the -180,180 range? (Not sure who's the best person to tag here. @anayeaye@smohiudd@ividito)
The text was updated successfully, but these errors were encountered:
Btw - if you wonder why this is coming up now (the issue has been there all along): Users have a much bigger map to draw AOIs on, in the new Exploration & Analysis page, so the risk is greater that they draw outside the -180,180 range.
FROM: #726 (comment)
On the Exploration page, when the map is zoomed to the point where there are multiple world copies, it is possible to draw an AOI on a map that falls outside the -180,180 range.
In the image below, we can see 3 "full maps", each with its own coordinate range. Since I drew the AOI in the leftmost one, the API will return 0 features.
The following payload will cause 0 features to be returned on a
POST https://test-stac.delta-backend.com/search
View JSON Payload
This becomes all the more problematic when the AOI crosses into another map, which is very possible if the users' AIO is over the pacific ocean.
A solution would be to cut the polygons and then bring the part that is "outside" the map into the correct range. In this way we'd be submitting the correct payload.
However, is this something that the API should handle? Should it be able to handle coordinates outside the -180,180 range? (Not sure who's the best person to tag here. @anayeaye @smohiudd @ividito)
The text was updated successfully, but these errors were encountered: