split_rivers_at_points: Split river lines around point locations

View source: R/utils.R

split_rivers_at_pointsR Documentation

Split river lines around point locations

Description

Split river lines around point locations

Usage

split_rivers_at_points(rivers, pts, tolerance = NULL)

Arguments

rivers

A rivers object returned by import_rivers().

pts

An sf object, points at which to split river lines.

tolerance

A numeric value specifying the snapping distance (in map units) to align points to the river network. Defaults to NULL, meaning no snapping.

Value

A rivers object with non-split rivers replaced with two new features each at opposite sides of the node which splits it. All attributes assumed to be constant.


dci documentation built on June 14, 2025, 1:08 a.m.