Learn R Programming

rcrisp (version 0.3.1)

river_buffer: 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)

Value

An object of class sf::sfc_POLYGON

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"