Hi everybody, I loaded in my postgis the map of Europe in the EPSG:4326 reference system. Based on that map I need to calculate the distance of a point from the italian border (measured by a GPS device). I tried gpsPoint.distance(italy.getBoundary()), where gpsPoint and italy (Multipolygon) are two instance of Geometry, but the result is not expressed in meters. I can measure the distance between two point in meters using JTS.orthodromicDistance(..), but I do not know how to find out the italian border point nearest to my gps point. I also tried to express the boundary and the point in reference systems that seems to calculate distances in meters (EPSG:23032 and EPSG:3005), but the results does not seem to be accurate, at least compared with those I found in qgis from the same data sources (while my orthodromic distance measurements match those of qgis). I would be very grateful to anybody who could give me a clue.
many thanks in advance Ciao Francesco -- View this message in context: http://www.nabble.com/Find-point-distance-in-meters-from-multipolygon-tp14488572p14488572.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
