Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.5
-
Component/s: referencing
-
Labels:None
-
Environment:winxp, java 1.5.0_11
-
Testcase included:yes
Description
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":
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!
Fixed in 2.5.x and trunk