I have got the point and the polygon (or line). I have to find the closest coordinate (it can be the "virtual" point on edge) from polygon due to the point.
Do you know how to find out this coordinate?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityThis should work http://postgis.net/docs/ST_ClosestPoint.html
ST_ClosestPoint — Returns the 2-dimensional point on g1 that is closest to g2. This is the first point of the shortest line.