GeodeticCalculator - Wrong azimuth calculation
----------------------------------------------
Key: GEOT-2715
URL: http://jira.codehaus.org/browse/GEOT-2715
Project: GeoTools
Issue Type: Bug
Components: core referencing
Affects Versions: 2.4.5
Environment: winxp, java 1.5.0_11
Reporter: Katrin Lasinger
Attachments: GeodeticCalculatorTest.java
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!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel