[R-sig-Geo] rgdal: problem with grid data

Agustin Lobo alobolistas at gmail.com
Tue Mar 23 07:32:20 CET 2010


Hi!

  I read a grid file into R with
isrlc <- 
readGDAL("/media/Transcend/MASTER_ICTA2007_2008/GEODATA_miniprojs/Kefah/ISR_cov/isr_cov.gri")

While isrlc seems correct,  I'm getting an empty shapefile when I attempt to write:

writeOGR(isrlc,dsn="/media/Transcend/MASTER_ICTA2007_2008/GEODATA_miniprojs/Kefah", 
layer="ISR_cov2",driver="ESRI Shapefile")

Data from
http://www.diva-gis.org/data/cov/ISR_cov.zip

Thanks

Agus



More information about the R-sig-Geo mailing list