pgstac icon indicating copy to clipboard operation
pgstac copied to clipboard

Ensure proper handling of geometries passed in that cross the antimeridian

Open bitner opened this issue 1 year ago • 2 comments

bitner avatar Apr 24 '24 16:04 bitner

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.

j08lue avatar Apr 25 '24 08:04 j08lue

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

gadomski avatar Nov 12 '24 18:11 gadomski