powered by
Generate spatial points representing nodes on a SpatialLinesNetwork or sfNetwork.
sln2points(sln)
The SpatialLinesNetwork to use.
# NOT RUN { data(routes_fast) rnet <- overline(routes_fast, attrib = "length") SLN <- SpatialLinesNetwork(rnet) (sln_nodes = sln2points(SLN)) plot(SLN) plot(sln_nodes, add = TRUE) # }
Run the code above in your browser using DataLab