Learn R Programming

rcrisp (version 0.3.1)

buffer: 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, ...)

Value

An object of class sf::sfc_POLYGON

Arguments

obj

A sf object

buffer_distance

Buffer distance in meters

...

Optional parameters passed on to sf::st_buffer()