Skip to contents

Lines that intersect the river only once and that cross the corridor from side to side are considered valid segment edges. We group valid segment edges that cross the river in nearby locations, and select the shortest line per cluster.

Usage

clip_and_filter(lines, corridor, river_centerline)

Arguments

lines

Candidate segment edges as a simple feature geometry

corridor

The river corridor as a simple feature geometry

river_centerline

The river centerline as a simple feature geometry

Value

Candidate segment edges as a simple feature geometry