Hi<div><br></div><div>I get an error in writeGDAL(), narrowed down in the call to <br clear="all"><div><font class="Apple-style-span" face="'courier new', monospace">tds.out = new("GDALTransientDataset", driver = d.drv, rows = dims[2], </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> cols = dims[1], bands = nbands, type = type, options = options, </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> fname = fname, handle = NULL)</font></div>
<div>in create2GDAL.</div><div><br></div><div>This error is for me reproducible:</div><div>with the attached file, execute:</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">library(maptools)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">library(rgdal)</font></div><div><div><font class="Apple-style-span" face="'courier new', monospace">region <- readAsciiGrid("region.asc.gz")</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">image(region)</font></div><div><font class="Apple-style-span" face="'courier new', monospace">writeGDAL(region, "region.tif")</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">## RESULT: Error in .local(.Object, ...) : Unable to create dataset</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">> Sys.info()</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> sysname </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "Linux" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> release </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "2.6.38-10-generic" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> version </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">"#46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> nodename </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "ecolmod" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> machine </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "i686" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> login </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "rkrug" </font></div><div><font class="Apple-style-span" face="'courier new', monospace"> user </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "rkrug"</font></div></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><div>> sessionInfo()</div><div>R version 2.13.1 (2011-07-08)</div><div>Platform: i686-pc-linux-gnu (32-bit)</div><div><br></div><div>
locale:</div><div> [1] LC_CTYPE=en_GB.utf8 LC_NUMERIC=C </div><div> [3] LC_TIME=en_GB.utf8 LC_COLLATE=en_GB.utf8 </div><div> [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 </div><div> [7] LC_PAPER=en_GB.utf8 LC_NAME=C </div>
<div> [9] LC_ADDRESS=C LC_TELEPHONE=C </div><div>[11] LC_MEASUREMENT=en_GB.utf8 LC_IDENTIFICATION=C </div><div><br></div><div>attached base packages:</div><div>[1] stats graphics grDevices utils datasets methods base </div>
<div><br></div><div>other attached packages:</div><div>[1] rgdal_0.7-1 maptools_0.8-9 lattice_0.19-30 sp_0.9-84 </div><div>[5] foreign_0.8-44 </div><div><br></div><div>loaded via a namespace (and not attached):</div>
<div>[1] grid_2.13.1 tools_2.13.1</div><div>> </div></font></div><div><br></div><div>Cheers,</div><div><br></div><div>Rainer</div><div><br></div>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br>
<br>Centre of Excellence for Invasion Biology<br>Stellenbosch University<br>South Africa<br><br>Tel : +33 - (0)9 53 10 27 44<br>Cell: +33 - (0)6 85 62 59 98<br>Fax (F): +33 - (0)9 58 10 27 44<br><br>Fax (D): +49 - (0)3 21 21 25 22 44<br>
<br>email: <a href="mailto:Rainer@krugs.de" target="_blank">Rainer@krugs.de</a><br><br>Skype: RMkrug<br><br>
</div>