-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal Server Error when querying for non-square polygons in Liberia #397
Comments
Very strange, I'm able to reproduce it, nothing in the logs pops out but clearly something is going on, will keep looking |
@jamescw19 I think Marc is out but our internal investigation revealed that the library that handles the geometry processing is truncating decimal numbers from your polygon coordinates and creating polygons with zero area. Can you make your search polygon larger and reduce the number of decimal points to no more than 0.0001 degrees? Unrelated: whenever I see a WSG84 coordinate with that many decimal points producing creating an error, my first action is to reduce the number of decimal points to see if it still happens with a lower resolution. I found this answer a good guide to know how many decimal points I need for a WSG84 coordinate https://gis.stackexchange.com/questions/8650/measuring-accuracy-of-latitude-and-longitude/8674#8674 |
Thanks for the link, very interesting! {
"coordinates": [[
[-10.7, 6.4],
[-10.7, 6.3],
[-10.6, 6.3],
[-10.7, 6.4]
]],
"type": "Polygon"
} Same error. I tried tweaking the latitude values (longitude showed no issues) and found that the failures occurred between |
It might be related to this issue https://trac.osgeo.org/postgis/ticket/5583 which was fixed in a newer version of GEOS, so we'll attempt to bump the version of PostGIS we're using and see if it fixes it, so standby. |
I'm trying to access some data from the
io-lulc-annual-v02
collection through the Python SDK. Whenever I use non-square polygons as theintersects
input, I get a500 Internal Server Error
response from MSPC. This seems to be the case when running queries over one of my test areas, Liberia (I have not tested in other regions around this), but the search works as expected if I use the same shape polygons in areas like New Zealand or the UK. A minimal example is shown below:The text was updated successfully, but these errors were encountered: