Closed SpatLyu closed 10 months ago
I have solved it as the problem of source data. I use ArcPy
's SplitLine_management
to Split Line At Vertices, then rerun the code and the warning disappeared, I also got the result I wanted! Record it here , hoping to help friends with the same problem!
Describe the bug When I calculating shortest paths based on point
sf
and linestringsf
,st_network_paths
can't get the path and it warns meIn shortest_paths(x, from, to, weights = weights, output = "both", : At core/paths/dijkstra.c:446 : Couldn't reach some vertices.
Reproducible example Sorry, i'm new to the
reprex
package,so i use the traditional way to give anexample~the example data is here
R Session Info Include session info of your session, with the function
sessionInfo()
.