Re: [R-sig-Geo] Spatial data tower of babel

2010-08-25 Thread Barry Rowlingson
On Wed, Aug 25, 2010 at 1:53 PM, Edzer Pebesma edzer.pebe...@uni-muenster.de wrote: Barry, what exactly did you try out before you posted? Your claim is not completely true: geoR has a function as.geodata.SpatialPointsDataFrame, so you can do, for instance: library(geoR) data(meuse) # from

Re: [R-sig-Geo] Spatial data tower of babel

2010-08-25 Thread Robert J. Hijmans
I think that such a package would be very useful. It could have a single function like convert(x, 'AnotherClass') The package would only need to depend on sp, all the other packages would be suggested such that you do not need to install the packages you do not use. Robert On Wed, Aug 25,

Re: [R-sig-Geo] Spatial data tower of babel

2010-08-25 Thread Robert J. Hijmans
Rather something like this in the simplest form; i.e. using an S4 method for inheritance, and passing it on to other packages as much as possible. setMethod('convert', signature(x='ANY', class='character'), function(x, class, ...) { y - try( as(x, class), silent=TRUE ) if (class(y)

[R-sig-Geo] Spatial data tower of babel

2010-08-18 Thread Barry Rowlingson
Hi, Recently while teaching at SFU I hit the problem that infects R when many people work on similar projects - the multitude of data formats for similar data. The sp project was partly an attempt to give a standard format for spatial data but its widespread non-use in older packages causes

Re: [R-sig-Geo] Spatial data tower of babel

2010-08-18 Thread Roger Bivand
On Wed, 18 Aug 2010, Barry Rowlingson wrote: Hi, Recently while teaching at SFU I hit the problem that infects R when many people work on similar projects - the multitude of data formats for similar data. The sp project was partly an attempt to give a standard format for spatial data but its