search for: capstyle

Displaying 1 result from an estimated 1 matches for "capstyle".

Did you mean: capscale
2012 Apr 07
1
rgeos - gBuffer, width by z-value
...ints) 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 sugges...