Learn R Programming

gdalraster (version 1.11.1)

g_buffer: 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 = 30L)

Value

Character string for an OGC WKT polygon.

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.

See Also

bbox_from_wkt(), bbox_to_wkt()

Examples

Run this code
g_buffer(wkt = "POINT (0 0)", dist = 10)

Run the code above in your browser using DataLab