geos_buffer {geos} | R Documentation |
Buffer a geometry
Description
-
geos_buffer()
returns a polygon or multipolygon geometry. -
geos_offset_curve()
returns a linestring offset to the left bydistance
.
Usage
geos_buffer(geom, distance, params = geos_buffer_params())
geos_offset_curve(geom, distance, params = geos_buffer_params())
geos_buffer_params(
quad_segs = 30,
end_cap_style = c("round", "flat", "square"),
join_style = c("round", "mitre", "bevel"),
mitre_limit = 1,
single_sided = FALSE
)
Arguments
geom |
|
distance |
The buffer distance. Can be negative to buffer or offset on the righthand side of the geometry. |
params |
|
quad_segs |
The number of segments per quadrant. A higher number here will increase the apparent resolution of the resulting polygon. |
end_cap_style |
One of "round", "flat", or "square". |
join_style |
One of "round", "mitre", or "bevel". |
mitre_limit |
If |
single_sided |
Use |
Value
A GEOS geometry vector along the recycled
length of geom
and distance
.
Examples
geos_buffer("POINT (0 0)", 1)
geos_offset_curve("LINESTRING (0 0, 0 10, 10 0)", 1)
[Package geos version 0.2.4 Index]