Learn R Programming

spNetwork (version 0.4.4.6)

lines_center: Centre points of lines

Description

Generate a feature collection of points at the centre of the lines of a feature collection of linestrings. The length of the lines is used to determine their centres.

Usage

lines_center(lines)

Value

A feature collection of points

Arguments

lines

A feature collection of linestrings to use

Examples

Run this code
# \donttest{
data(mtl_network)
centers <- lines_center(mtl_network)
# }

Run the code above in your browser using DataLab