[R-sig-Geo] shortest distance from points to polylines

Alex Mandel tech_dev at wildintellect.com
Wed May 20 14:33:03 CEST 2009


Pilar Tugores Ferra wrote:
> Hi list!
> I need computing shortest distance from points to a polyline layer (coast line).
> I've been searching all the morning a function in R that can do this but couldn't find anything! 
> Is there any R function that do this? Or can anybody give me some hint about how it could be done?
> Kind regards!
> Pilar
> 
> 
> Mª Pilar Tugores Ferrà

This is more straightforward if you use GRASS.
v.distance

I seem to recall a library to allow you to connect and run GRASS
commands from R, but maybe google or someone can elaborate.
http://grass.osgeo.org/

Alex



More information about the R-sig-Geo mailing list