Hello,
and here is another demonstration:
http://nceas.ucsb.edu/scicomp/GISSeminar/UseCases/AssignClosestPointsR/AssignClosestPointsR.html
And the 'Assign Closest Airports to Cities' example on this page might
be useful -
http://nceas.ucsb.edu/scicomp/RSpatialWorkshopExamples.html
Regards,
Rick R
Torleif Markussen Lunde wrote:
Hi
Roger Bivand replied a similar question 3.5 years (roughly) ago. Maybe this link can help you:
https://stat.ethz.ch/pipermail/r-sig-geo/2005-November/000682.html <http://osdir.com/ml/lang.r.geo/2005-11/msg00032.html>
Best wishes
Torleif
________________________________
Fra: r-sig-geo-boun...@stat.math.ethz.ch på vegne av Gustaf Rydevik
Sendt: ti 10.03.2009 19:06
Til: r-sig-geo@stat.math.ethz.ch
Emne: [R-sig-Geo] Smallest distance from one point feature to a pointlayer
Hi All,
I have two shapefiles with point features, A and B. I've managed to
import them into R with maptools and spatstat.
Now I would like to calculate, for each point in A, the closest
distance to any point in B.
What is the best way to do this?
Many thanks in advance,
Gustaf
--
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gustaf_rydevik
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Rick Reeves
Scientific Programmer/Analyst and Data Manager
National Center for Ecological Analysis and Synthesis
UC Santa Barbara
www.nceas.ucsb.edu
805 892 2533
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo