View source: R/sp_snap_points_to_lines.R
sp_snap_points_to_lines | R Documentation |
Function to "snap" spatial points to the nearest spatial line.
sp_snap_points_to_lines(
sp_points,
sp_lines,
max_distance = NA,
id = NA,
rename = TRUE
)
sp_points |
Spatial points to be snapped. |
sp_lines |
Spatial lines to snap |
max_distance |
The maximum distance to avoid snapping points that are farther apart. |
id |
The variable in |
rename |
Should the |
Spatial points with altered coordinates; all points will lie on lines
supplied for sp_lines
.
Stuart K. Grange
snapPointsToLines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.