Learn R Programming

spNetwork (version 0.4.3)

lines_points_along: Points along lines

Description

Generate a feature collection of points along the lines of feature collection of Linestrings.

Usage

lines_points_along(lines, dist)

Arguments

lines

A feature collection of linestrings to use

dist

The distance between the points along the lines

Value

A feature collection of points

Examples

Run this code
# NOT RUN {
networkgpkg <- system.file("extdata", "networks.gpkg", package = "spNetwork", mustWork = TRUE)
mtl_network <- sf::st_read(networkgpkg,layer = "mtl_network")
new_pts <- lines_points_along(mtl_network,50)
# }

Run the code above in your browser using DataLab