todd runstein a écrit :
The code works fine in most cases but fails if I use
-180:-90 & 180:90. Any ideas?
+/-180° in longitude should not be a problem, but +/-90° in latitude may
be. I'm not sure that the ellipsoidal formulas can handle a point close
to the pole. If those point must really be handled, it may be worth to
try a spherical formulas:
DefaultEllipsoid.SPHERE.orthodromicDistance(...)
You may also try
DefaultEllipsoid.WGS84.orthodromicDistance(...)
The later use ellipsoidal formulas, so it may fails (not sure), but
maybe not since the algorithm is slightly different from
GeodeticCalculator (you don't have direction, etc.).
Martin.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users