river_buffer: Draw a corridor as a fixed buffer region around a river.

View source: R/utils.R

river_bufferR Documentation

Draw a corridor as a fixed buffer region around a river.

Description

The river geometry may consist of multiple spatial features, these are optionally cropped using the area of interest, then merged after applying the buffer.

Usage

river_buffer(river, buffer_distance, bbox = NULL, side = NULL)

Arguments

river

A simple feature geometry representing the river

buffer_distance

Size of the buffer (in the river's CRS units)

bbox

Bounding box defining the extent of the area of interest

side

Whether to generate a single-sided buffer with a "flat" end. This is only applicable if river is a (multi)linestring geometry. Choose between NULL (double-sided), "right" and "left"

Value

A simple feature geometry


rcrisp documentation built on Aug. 8, 2025, 6:42 p.m.