Skip to content

Problem closing gdal file

2 messages · Agustin Lobo, Roger Bivand

#
Hi!

After writing a geotif file with
writeGDAL(delme.cl.im,"t1cl100.tif",drivername = "GTiff")

the file seems to remain open, cannot move it or rename it
in the OS

I've tried closing it with
GDAL.close("t1cl100")

but...
Error in slot(dataset, "handle") :
   cannot get a slot ("handle") from an object of type "character"

Is there a better way to solve this problem than just exiting R?

Thanks!

Agus
#
On Fri, 26 Oct 2007, Agustin Lobo wrote:

            
I'm looking into this, but without the output of sessionInfo(), it isn't 
easy. May I assume that this is a Windows system? If so, have you built 
your own GDAL and rgdal, or are you using the binary Windows package?

Roger