powered by
Add vertices (SpatialPoints) to a single line (SpatialLines), may fail if the lines geometries are self intersecting.
add_vertices(line, points, i, mindist)
The SpatialLine to modify
The SpatialPoints to add to as vertex to the lines
The index of the line (for recombining after all lines)
The minimum distance between one point and the extremity of the line to add the point as a vertex.
A matrix of coordinates to build the new line
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab