Create a set of number of evenly spaced points along a line geometry
points_along_line.Rd
Create a set of number of evenly spaced points along a line geometry
Arguments
- line
The line to create points along. Must be an sfc object (as created by
sf::st_sfc()
) with LINESTRING geometry.- n_points
The number of points along the line to create.
Examples
if (FALSE) { # rlang::is_interactive()
dem <- system.file("elevation.tiff", package = "rrrem")
centerline <- get_river_centerline(dem)
center_points <- points_along_line(centerline, n_points = n_points)
}