buffer: Apply a buffer region to a sf object

View source: R/utils.R

bufferR Documentation

Apply a buffer region to a sf object

Description

If the input object is in lat/lon coordinates, the buffer is approximately applied by first transforming the object in a suitable projected CRS, expanding it with the given buffer, and then transforming it back to the lat/lon system.

Usage

buffer(obj, buffer_distance, ...)

Arguments

obj

A sf object

buffer_distance

Buffer distance in meters

...

Optional parameters passed on to sf::st_buffer()

Value

Expanded sf object


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