Ensure proper handling of geometries passed in that cross the antimeridian
On the NASA IMPACT VEDA project, we are submitting STAC queries against STAC-FastAPI with the PgSTAC backend (details in our infra project: https://github.com/NASA-IMPACT/veda-backend).
Some of the queries fail, in particular with a complex MultiPolygon for Alaska and we have a suspicion that it has to do with parts of that MultiPolygon crossing the antimeridian.
It is only a suspicion for now, though, and we need to make some tests to get to the real cause of the issue.
Please see the details on the upstream issue description:
- https://github.com/NASA-IMPACT/veda-ui/issues/923#issuecomment-2075129085
EDIT: to close the circle on this - the issue turned out to be request payload limitation, not antimeridian.
Just swinging by to drop a shameless plug for https://github.com/gadomski/antimeridian/ to correct geometries on the way in.