mercredi 28 janvier 2015

GeoTools - Find distance in meters between point and path in lat/lon


I need to find distance in meters between some point with given latitude and longitude and line (on Earth) defined by several points with lat/lon coordinates.


I read this questions:


first


second


In second it is said that this is impossible with geoTools. Is so, could you recommend any other java library for such problems? In first, code in the accepted answer doesn't work for me, may be because of that I don't understand which transformation I should choose (and point can be on a big distance from the line, so the transformation may produce not accurate results).


Any help will be appreciated.





Aucun commentaire:

Enregistrer un commentaire