Re: [R] rgeos - gBuffer, width by z-value

2012-04-07 Thread Omphalodes Verna
ct of type "list" Cheers, OV From: Michael Sumner Cc: "r-help@r-project.org" Sent: Saturday, April 7, 2012 2:54 PM Subject: Re: [R] rgeos - gBuffer, width by z-value Just use a loop and collect the results in a list. BTW, R-Sig-Geo is a special interest

Re: [R] rgeos - gBuffer, width by z-value

2012-04-07 Thread Michael Sumner
Just use a loop and collect the results in a list. BTW, R-Sig-Geo is a special interest group mailing list specifically for these sorts of questions regarding sp and rgeos packages (which you did not mention). library(sp) library(rgeos) point <- data.frame(x=c(10,20), y=c(10, 10), z = c(2,7)) p

[R] rgeos - gBuffer, width by z-value

2012-04-07 Thread Omphalodes Verna
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[