stac-utils / pgstac

Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL
MIT License
153 stars 39 forks source link

Ensure proper handling of geometries passed in that cross the antimeridian #261

Open bitner opened 7 months ago

j08lue commented 7 months ago

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:

EDIT: to close the circle on this - the issue turned out to be request payload limitation, not antimeridian.

gadomski commented 2 weeks ago

Just swinging by to drop a shameless plug for https://github.com/gadomski/antimeridian/ to correct geometries on the way in.