java: check if WGS84 point is within a polygon if not get the distance -
as mentioned in title i'm searching possibillity check if given point in wgs84-format within given polygon , if not want find shortest distance point polgon. maybe there exists library.
thank help
greetings
check out java topology suite. has point in polygon function, , distance functions, among many others. check if point inside polygon doesn't matter coordinate system is.
http://www.vividsolutions.com/jts/jtshome.htm
http://en.wikipedia.org/wiki/jts_topology_suite
if want convert 1 coordinate system another, have at:
http://en.wikipedia.org/wiki/jts_topology_suite
both of these libraries (jts in guise of c++ port, geos) form part of popular postgis extension postgres, if ever want move spatial analysis database.
Comments
Post a Comment