Dear list!
I have problem with buffer size (width) in package rgeos. I would like to
expand given geometry (points) to specified width based on the z value from
attribute table. Here is example:
point <- data.frame(x=c(10,20), y=c(10, 10), z = c(2,7))
point_shp <- SpatialPointsDataFrame(point[,1:2],point)
plot(point_shp, xlim = c(0,30), ylim = c(0,20))
plot(gBuffer(point_shp, width = 5, byid=TRUE, capStyle="ROUND"), add = TRUE,
col = "red")
plot(gBuffer(point_shp, width = point_shp@data$z, byid=TRUE, capStyle="ROUND"),
add = TRUE, col = "green")
'gBuffer' function ''take into account'' always only first line/cell from
table. Any suggestion?
Thanks a lot,
OV
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.