sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Resolved] (SIS-385) Inaccurate formulas in DistanceUtils
Date Sat, 11 May 2019 21:56:00 GMT


Martin Desruisseaux resolved SIS-385.
    Resolution: Fixed

{{DistanceUtils}} is now deprecated and will be deleted after next Apache SIS release. Its
replacement is a class named {{GeodeticCalculator}}, but not the one in Geotk. All formulas
have been replaced and many methods renamed (e.g. "orthodromic distance" → "geodesic distance").
The current version implements only spherical formulas; the ellipsoidal case is another topic,
to be investigated in SIS-386. The spherical formulas are the ones given in [Wikipedia great-circle
navigation article|], as suggested. Code
can be view there:

* [Distance and azimuths from two points|]
* [End point from azimuth and distance|]

> Inaccurate formulas in DistanceUtils
> ------------------------------------
>                 Key: SIS-385
>                 URL:
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Referencing
>    Affects Versions: 0.1-incubating, 0.2-incubating, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Major
>             Fix For: 1.0
> 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
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:
> * subroutine DIRECT1.
> * subroutines GPNARC
(version 200005.26) and GPNHRI (version 200208.09) written by Robert (Sid) Safford.
> But we may take another source if suitable, for example [|].

This message was sent by Atlassian JIRA

View raw message