Re: [R-sig-Geo] spsample Error

2009-07-07 Thread Roger Bivand
On Tue, 7 Jul 2009, Agustin Lobo wrote: I'm using spsample() with a second SpatialLinesDataFrame but now I'm geting an error. This is what I do: fl2300 <- readOGR(dsn="/media/Transcend/MONTSENY2008/MONTSENY_UAV2/flMatagalls300",layer="flMatagalls300") wpMata300 <- spsample(fl2300[1,],33,offset

Re: [R-sig-Geo] spsample Error

2009-07-07 Thread Agustin Lobo
Paul, this is it: wpMata300 <- spsample(fl2300[1,],33,offset=0.0,type="regular") Error in proj4string(x) : proj4string only works for class(es extending) Spatial traceback() 16: stop("proj4string only works for class(es extending) Spatial") 15: proj4string(x) 14: identical(proj4string(x), p

Re: [R-sig-Geo] spsample Error

2009-07-07 Thread Paul Hiemstra
Agustin Lobo wrote: I'm using spsample() with a second SpatialLinesDataFrame but now I'm geting an error. This is what I do: fl2300 <- readOGR(dsn="/media/Transcend/MONTSENY2008/MONTSENY_UAV2/flMatagalls300",layer="flMatagalls300") wpMata300 <- spsample(fl2300[1,],33,offset=0.0,type="regular"

Re: [R-sig-Geo] spsample Error

2009-07-07 Thread Agustin Lobo
Additional information: it seems the error occurs with any polyline imported from shp files, not with straight lines. Agus -- View this message in context: http://n2.nabble.com/spsample-Error-tp3217861p3218531.html Sent from the R-sig-geo mailing list archive at Nabble.com.

[R-sig-Geo] spsample Error

2009-07-07 Thread Agustin Lobo
I'm using spsample() with a second SpatialLinesDataFrame but now I'm geting an error. This is what I do: fl2300 <- readOGR(dsn="/media/Transcend/MONTSENY2008/MONTSENY_UAV2/flMatagalls300",layer="flMatagalls300") wpMata300 <- spsample(fl2300[1,],33,offset=0.0,type="regular") Error in proj4string