Learn R Programming

spNetwork (version 0.4.4.3)

lines_extremities: Get lines extremities

Description

Generate a feature collection of points with the first and last vertex of each line in a feature collection of linestrings.

Usage

lines_extremities(lines)

Value

A feature collection of points

Arguments

lines

A feature collection of linestrings (simple Linestrings)

Examples

Run this code
data(mtl_network)
points <- lines_extremities(mtl_network)

Run the code above in your browser using DataLab