powered by
Snap points to their nearest lines (edited from maptools)
snapPointsToLines2(points, lines, idField = NA)
A SpatialPointsDataFrame
A SpatialLinesDataFrame
The name of the column to use as index for the lines
A SpatialPointsDataFrame with the projected geometries
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab