Learn R Programming

rcrisp (version 0.3.1)

select_nonintersecting_lines: Select non-intersecting line segments

Description

Recursively drop intersecting lines, starting from the line that form most intersections with other geometries. When multilple lines form the same number of intersections with other geometries, the longest line is discarded first. Note that lines are allowed to intersect on the corridor boundary.

Usage

select_nonintersecting_lines(lines, corridor)

Value

A set of lines of class sf::sfc_LINESTRING that do not intersect within the corridor geometry, as a simple feature geometry

Arguments

lines

Candidate edge segment as a simple feature geometry

corridor

The river corridor as a simple feature geometry