Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-385

Inaccurate formulas in DistanceUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1-incubating, 0.2-incubating, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8
    • 1.0
    • Referencing
    • None

    Description

      The DistanceUtils class has the following problems:

      • Inaccurate formula in getPointOnGreatCircle.
      • Inaccurate formula in getHaversineDistance.
      • Misnamed getHaversineDistance method.

      Charles Karney kindly provided descriptions of the problems on the developer mailing list, together with proposed fixes. One possible action is to deprecate DistanceUtils in favor of something like the GeodeticCalculator class in the Geotk project. That class is a port in Java of following Fortran code:

      But we may take another source if suitable, for example https://geographiclib.sourceforge.io/.

      Attachments

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: