[R-sig-Geo] Bug in writeGDAL / create2GDAL?
Rainer M Krug
r.m.krug at gmail.com
Fri Aug 5 10:49:07 CEST 2011
Hi
I get an error in writeGDAL(), narrowed down in the call to
tds.out = new("GDALTransientDataset", driver = d.drv, rows = dims[2],
cols = dims[1], bands = nbands, type = type, options = options,
fname = fname, handle = NULL)
in create2GDAL.
This error is for me reproducible:
with the attached file, execute:
library(maptools)
library(rgdal)
region <- readAsciiGrid("region.asc.gz")
image(region)
writeGDAL(region, "region.tif")
## RESULT: Error in .local(.Object, ...) : Unable to create dataset
> Sys.info()
sysname
"Linux"
release
"2.6.38-10-generic"
version
"#46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011"
nodename
"ecolmod"
machine
"i686"
login
"rkrug"
user
"rkrug"
> sessionInfo()
R version 2.13.1 (2011-07-08)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_GB.utf8 LC_NUMERIC=C
[3] LC_TIME=en_GB.utf8 LC_COLLATE=en_GB.utf8
[5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_GB.utf8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.utf8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgdal_0.7-1 maptools_0.8-9 lattice_0.19-30 sp_0.9-84
[5] foreign_0.8-44
loaded via a namespace (and not attached):
[1] grid_2.13.1 tools_2.13.1
>
Cheers,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax (F): +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer at krugs.de
Skype: RMkrug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110805/237955f7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: region.asc.gz
Type: application/x-gzip
Size: 3515 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110805/237955f7/attachment.gz>
More information about the R-sig-Geo
mailing list