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

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -