-
Notifications
You must be signed in to change notification settings - Fork 215
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
large distance errors appearing in the short-range case by Andoyer and Thomas formulas #1217
Comments
If I understand that paper right, it includes the haversine formula in the comparison under the label "spherical" and it produces orders of magnitude larger errors for every maximum distance except 2 meters. |
Thanks for opening this issue and for the computations. Indeed, it seems a good idea to replace |
I missed the calculation for Andoyer formula in above chart. I calculated, instead, the result of Andoyer-Lambert one, which uses parametric latitude. |
Could you please provide the details of how you generated the plots above. I thought you were using the boost geometry's formulas. |
I'm using the equivalents of the boost geometry's formulas for the plots above. |
I've just updated https://github.com/kkdd/geodistance-js for providing the benchmarks and plots of formulas. Its minimum deployment is provided in https://kkdd.github.io/geodistance-js: |
Hello,
The Boost Geometry's distance calculations by Andoyer and Thomas formulas seem to induce large errors in the short-range case, as shown in
Figure 1. The maximum absolute distance error as a function of distance. in GEODESIC ALGORITHMS: AN EXPERIMENTAL STUDY by Vissarion Fisikopoulos (2019).
I think they should use law of haversines formula for distance (i.e., d = 2 * asin(sin_d_half)) for accuracy, instead of spherical law of cosines (i.e., d = acos(cos_d)).
Thank you.
The text was updated successfully, but these errors were encountered: