Skip to contents

Segments are defined as corridor subregions separated by river-crossing transversal lines that form continuous strokes in the network.

Usage

get_segments(corridor, network, river_centerline, angle_threshold = 90)

Arguments

corridor

The river corridor as a simple feature geometry

network

The spatial network to be used for the segmentation

river_centerline

The river centerline as a simple feature geometry

angle_threshold

Only consider angles above this threshold (in degrees) to form continuous strokes in the network. See rcoins::stroke() for more details.

Value

Segment polygons as a simple feature geometry