Skip to contents

[Deprecated]

This function is deprecated because the functionality has been incorporated into the improved sfext::st_buffer_ext() function which uses a similar set of parameters.

Return an sf object of an area with a buffer applied to it. If no buffer distance is provided, a default buffer is calculated of one-eighth the diagonal distance of the bounding box (corner to corner) for the area. The metadata for the provided area remains the same.

Usage

buffer_area(area, dist = NULL, diag_ratio = NULL)

Arguments

area

sf object.

dist

buffer distance in meters. Optional.

diag_ratio

ratio to set map extent based diagonal distance of area's bounding box. Ignored when dist is provided.