Learn R Programming

gtfstools (version 2.0.1)

build_shape_cuts: Build the geometries of parts of shapes

Description

Build the geometries of parts of shapes

Usage

build_shape_cuts(cuts, shape_points)

Value

A sfc_LINESTRING in WGS 84 with the geometry of each part.

Arguments

cuts

A data.table with the shape_id of each part and the positions, in meters from the start of the shape, where it starts (from) and ends (to).

shape_points

The "shape_points" attribute of the output of locate_stops_along_shapes(), on which the positions were measured.