[geotk] [JIRA] Created: (GEOTK-103) Wrong azimuth calculation

Reg Troadec (JIRA) jira at geomatys.com
Fri Jun 18 10:55:27 EDT 2010


Wrong azimuth calculation
-------------------------

                 Key: GEOTK-103
                 URL: http://jira.geotoolkit.org/browse/GEOTK-103
             Project: Geotoolkit
          Issue Type: Bug
          Components: Referencing
    Affects Versions: 3.12, 3.11, 3.10, 3.09, 3.08, 3.07, 3.06, 3.05, 3.04, 3.03, 3.02, 3.01, 3.00
         Environment: Linux RHE 5.1, 
            Reporter: Reg Troadec
            Assignee: Martin Desruisseaux


When trying to compute a geodetic curve at the equator from east to west,
a wrong azimuth is calculated.

The problem seems to be in the (private) method "computeDirection" of the org.geotoolkit.referencing.GeodeticCalculator class:
If "dlon" (delta longitude) is < 0 a wrong calculation is done:
... Math.PI * (3 / 2) ...
(3 / 2) is computed as integer and then used with pi.

The whole computation must be performed with double precision!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Geotoolkit mailing list