[R-sig-Geo] Coordinates of the closest point

Juta Kawalerowicz juta.kawalerowicz at nuffield.ox.ac.uk
Wed Jun 24 00:55:27 CEST 2015


Hi, I know how to get the closest distance from a spatial point to a
polyline, but I was wondering if there is any easy way to also get
coordinates of the closest point on the polyline?

A longer way to go around this would be to build a buffer around spatial
point with radius equal to whatever is returned by gDistance() and then
look for intersections but there must be an easier way?

Cheers,
Juta

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list