Skip to content
Prev 22282 / 29559 Next

supplying multiple coordinates to shortestPath

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.