Geodetic Caluclator - Wrong distance for points on geodetic curve
-----------------------------------------------------------------
Key: GEOT-2716
URL: http://jira.codehaus.org/browse/GEOT-2716
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 computing a geodetic curve the distance between the points on the curve is
wrong.
The problem seems to be in the method "getGeodeticCurve(final int
numberOfPoints)":
deltaDistance (distance between steps) = distance / (numberOfPoints+1)
loop: for (int i = 1; i < numberOfPoints; i++)
the last point before the destination point is not calculated or the distance
between the points is to short
current curve (numberOfPoints = 3):
o---o---o------o
correct curve (extend deltaDistance to distance / numberOfPoints):
o----o----o----o
or (add one extra point with running to loop one more time (for (int i = 1; i
<= numberOfPoints; i++)):
o---o---o---o---o
--
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