View source: R/geos-unary-geometry.R
geos_buffer | R Documentation |
geos_buffer()
returns a polygon or multipolygon geometry.
geos_offset_curve()
returns a linestring offset to the left by distance
.
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
)
geom |
A GEOS geometry vector |
distance |
The buffer distance. Can be negative to buffer or offset on the righthand side of the geometry. |
params |
A |
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 |
A GEOS geometry vector along the recycled
length of geom
and distance
.
geos_buffer("POINT (0 0)", 1)
geos_offset_curve("LINESTRING (0 0, 0 10, 10 0)", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.