split_rivers_at_points {dci}R 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.


[Package dci version 1.0.2 Index]