geos_buffer()
returns a polygon or multipolygon geometry.
geos_offset_curve()
returns a linestring offset to the left by distance
.
The buffer distance. Can be negative to buffer or offset on the righthand side of the geometry.
A geos_buffer_params()
The number of segments per quadrant. A higher number here will increase the apparent resolution of the resulting polygon.
One of "round", "flat", or "square".
One of "round", "mitre", or "bevel".
If join_style
is "mitre", the relative extent (from zero to one)
of the join.
Use TRUE
to buffer on only the right side
of the geometry. This does not apply to geos_offset_curve()
, which is always
one-sided.
A GEOS geometry vector along the recycled
length of geom
and distance
.
geos_buffer("POINT (0 0)", 1)
#> <geos_geometry[1]>
#> [1] <POLYGON [-1 -1...1 1]>
geos_offset_curve("LINESTRING (0 0, 0 10, 10 0)", 1)
#> <geos_geometry[1]>
#> [1] <LINESTRING [-1 0...10.707 11]>