I have road maps (line features) and point features representing forest plots. I created buffer around the roads. Now I want to know the distance from line(road) to the points within this buffer.
How can I do that?
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 communityI have road maps (line features) and point features representing forest plots. I created buffer around the roads. Now I want to know the distance from line(road) to the points within this buffer.
How can I do that?
If you are comfortable using Python and arcpy, you could use a cursor to iterate through the point features, extracting the geometry for each of them in turn.
For each point geometry, you can pass it to the line geometry's angleAndDistanceTo()
method, which returns an angle and the distance to the passed in point geometry.
See:
(UPDATE: Actually, I'm unsure if a line's angleAndDistanceTo()
method uses the nearest point on the line to measure the distance to, or if it uses some other point on the line. It would need some testing or further research.)