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

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -