[R-sig-Geo] supplying multiple coordinates to shortestPath

karljarvis karljarvis at gmail.com
Fri Feb 6 01:31:59 CET 2015


Hi Pascal,
It doesn't like that you are finding the path from coordmat[2,] to itself.
This works, though:

shortestPath(tr, coordmat[2,], coordmat[c(1,3),], output='SpatialLines')

Best,
Karl



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/supplying-multiple-coordinates-to-shortestPath-tp7587734p7587739.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list