Skip to content
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

Spheric distance to a point does not work when locations are the same #18

Open
bocasti opened this issue Feb 25, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bocasti
Copy link
Contributor

bocasti commented Feb 25, 2022

Here is a piece of code reproducing the error:

OGCSphericSystem distance: (OGCPoint xy: #(8.426901532959166 48.942219049707404) ) toPoint: (OGCPoint xy: #(8.426901532959166 48.942219049707404)).

It looks like there is some imprecision somewhere which ends computing the arcos of 1.0000000000000002.
Which fail because the value is expected to be between -1 and 1

@noha noha added the bug Something isn't working label Feb 25, 2022
noha added a commit that referenced this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants