[R-sig-Geo] Problem closing gdal file

Roger Bivand Roger.Bivand at nhh.no
Fri Oct 26 15:03:49 CEST 2007


On Fri, 26 Oct 2007, Agustin Lobo wrote:

> 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'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

>
> 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
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list