Skip to main content
6 events
when toggle format what by license comment
Sep 26, 2019 at 14:24 vote accept Paul Hofman
Sep 17, 2019 at 14:25 history edited Bruno Conte Leite CC BY-SA 4.0
big mistake of mine -- there was not typo at the first place.
Sep 17, 2019 at 14:17 history edited Bruno Conte Leite CC BY-SA 4.0
corrected typo on the library (rgeos) that needs to be loaded to use the gdistance function.
Sep 17, 2019 at 12:09 comment added Paul Hofman Also, is there any way to also calculate distance along the route? I've been trying this by converting to a UTM CRS and then using rgeos::gLength, but I've been stopped by the problem in the previous comment
Sep 17, 2019 at 12:07 comment added Paul Hofman Thanks! I'm running into the problem that sometimes points aren't exactly on the line, and then shortestPath complains that some vertices can't be reached: In get.shortest.paths(adjacencyGraph, indexOrigin, indexGoal) : At structural_properties.c:4597 :Couldn't reach some vertices
Sep 10, 2019 at 19:16 history answered Bruno Conte Leite CC BY-SA 4.0