Dear community,
I am learning some basic geometry operation functions of sf package including st_buffer().
It seems there should be no wonder if I provide a negative value to the dist argument in st_buffer(), I should expect an inward/shrinking buffer zone (I also followed here: https://gis.stackexchange.com/questions/392505/can-i-use-r-to-do-a-buffer-inside-polygons-shrink-polygons-negative-buffer). However, it turn out to be as long as I provide a negative value, the output will be an empty geometry:
library(sf)
library(spDataLarge)
st_geometry(bristol_zones[1, ]) -> a # a is the exemplary data set
Geometry set for 1 feature (with 1 geometry empty)
Geometry type: POLYGON
Dimension: XY
Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA
Geodetic CRS: WGS 84
POLYGON EMPTY
So I would like to know if it is possible to create inward buffer zones with st_buffer()? If st_buffer() is not designed to perform this, what is the best alternative?
Thank you, and have a great start of the week!
$B3pfF(B YE, Xiang
THINKING SPATIALLY<http://www.linkedin.com/in/spatialyexiang>.
Ph.D. in Spatial Statistics