g_buffer {gdalraster}R Documentation

Compute buffer of a WKT geometry

Description

g_buffer() builds a new geometry containing the buffer region around the geometry on which it is invoked. The buffer is a polygon containing the region within the buffer distance of the original geometry.

Usage

g_buffer(wkt, dist, quad_segs = 30)

Arguments

wkt

Character. OGC WKT string for a simple feature 2D geometry.

dist

Numeric buffer distance in units of the wkt geometry.

quad_segs

Integer number of segments used to define a 90 degree curve (quadrant of a circle). Large values result in large numbers of vertices in the resulting buffer geometry while small numbers reduce the accuracy of the result.

Value

Character string for an OGC WKT polygon.

See Also

bbox_from_wkt(), bbox_to_wkt()

Examples

g_buffer(wkt = "POINT (0 0)", dist = 10)

[Package gdalraster version 1.10.0 Index]