Learn R Programming

spNetwork (version 0.4.4.6)

simple_lines: LineString to simple Line

Description

Split the polylines of a feature collection of linestrings in simple segments at each vertex. The values of the columns are duplicated for each segment.

Usage

simple_lines(lines)

Value

An featue collection of linestrings

Arguments

lines

The featue collection of linestrings to modify

Examples

Run this code
# \donttest{
data(mtl_network)
new_lines <- simple_lines(mtl_network)
# }

Run the code above in your browser using DataLab