[R-sig-Geo] Distance to (nearest) polygon
Karl Ove Hufthammer
karl at huftis.org
Tue Jan 26 16:02:27 CET 2010
Dear list members
Is there an easy and preferably fast way to measure the distance from a
of (large) number of points to the nearest polygon? spDistsN1 seems to
only want to measure the distance between points.
For example, I need the distance between points at sea to the nearest
land area (as defined by for example the 'world' dataset).
It's not very important which polygon, e.g., country, the given distance
is to. It would be nice if the 'distance' from points that are inside
the polygons were zero or negative, but it's not required -- distance to
the polygon border, e.g., shoreline, would be OK.
--
Karl Ove Hufthammer
More information about the R-sig-Geo
mailing list