lines_center: Centre points of lines

View source: R/geometrical_functions_sf.R

lines_centerR Documentation

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)

Arguments

lines

A feature collection of linestrings to use

Value

A feature collection of points

Examples


data(mtl_network)
centers <- lines_center(mtl_network)


JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.