Hi

I am having problems writing a raster when useGDAL=TRUE.

When trying to write any raster

> writeRAST6(x, "rsdgion", useGDAL=TRUE)
Error in .local(.Object, ...) : Unable to create dataset
> traceback()
8: .Call("RGDAL_CreateDataset", driver, as.integer(c(cols, rows,
       bands)), as.integer(typeNum), options, my_tempfile, PACKAGE =
"rgdal")
7: .local(.Object, ...)
6: initialize(value, ...)
5: initialize(value, ...)
4: new("GDALTransientDataset", driver = d.drv, rows = dims[2], cols =
dims[1],
       bands = nbands, type = type, options = options, fname = fname,
       handle = NULL)
3: create2GDAL(dataset = dataset, drivername = drivername, type = type,
       mvFlag = mvFlag, options = options, fname = fname, setStatistics =
setStatistics)
2: writeGDAL(x[zcol], fname = rtmpfl11, type = type, drivername =
drivername,
       mvFlag = NODATA)
1: writeRAST6(x, "rsdgion", useGDAL = TRUE)
>

but useGDAL=FALSE works.

In addition, the overwrite=TRUE seems to have no effect?

I am using GRASS 6.4 and R 2.13, spgrass6 and rgdal newest versions from
cran.

If you need any further info, please let me know.

Thanks,

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@krugs.de

Skype:      RMkrug

	[[alternative HTML version deleted]]

