|
From: Paul S. <Pau...@to...> - 2018-04-06 16:23:24
|
Hi everybody, I got a NaN back when calculating the distance between two latlons that are very close together. Is this the intended behavior of the GeodeticCalculator? The following shows an example in Scala: val gc: GeodeticCalculator = new GeodeticCalculator(DefaultEllipsoid.WGS84) gc.setStartingGeographicPoint(-73.99102, 40.85273) gc.setDestinationGeographicPoint(-73.99102287448099, 40.852729999999994) gc.getOrthodromicDistance Intuitively, I would expect a small number or 0 as a return value. Do I have to care in my code about NaNs? I used geotools version 18.2 if this helps. Best regards, Paul |