-
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
FDSNWS: Bug in query with radial geographic constraint (internal server error: "distance returned negative!") #109
Comments
I assume the tests run on that machine? I wonder if it might be some kind of accuracy issue with a 0.01 degree radius. Does it work with larger radii? Internally this is all handled by PostGIS and the logic seems okay to me: jane/src/jane/documents/models.py Lines 319 to 359 in 7322d77
|
It also doesn't work with larger radii (the above links to check are globally available) |
Using a radial geographic constraint can somehow end up in negative distances being calculated internally during assembling the QuerySet, which leads to an exception being raised and the server not returning any results but rather giving a HTTP 500 "Internal server error".
Works without radial constraint:
Same query with an added radial constraint on top:
In the browser it shows "Exception Value: | distance returned negative!"
The text was updated successfully, but these errors were encountered: