Skip to content
Prev 20300 / 29559 Next

Calculate distance along a path

Hi Barry.

Thanks! Very good input!

I completely agree. They need to think about their specific requirements. In our case we needed to know the distance from any location to all "buses" (out satellite info), for our data assimilation problems.

Jaqueline, 
I also dont know about any published function in R to obtain the closest point [be it a node or in the middle of a segment] in a SpatialLinesDataFrame to a given point/s, but it could be out there. FYI, the function I had to build for this relies on rotations of the segments. Note for many intermediate steps you may store results in binary matrices, and then access them later as required.

Cheers,
Javier

---
Dr. Javier Garc?a-Pintado
National Centre for Earth Observation (ESSC-NCEO)
Data Assimilation Research Centre
School of Mathematical and Physical Sciences
University of Reading
Tel: +44(0)1183787722
j.garcia-pintado at reading.ac.uk
http://www.nceo.ac.uk/