Skip to content
Prev 19705 / 29559 Next

GDAL.close

On Tue, 5 Nov 2013, Oliver Soong wrote:

            
Here is the next version:

http://win-builder.r-project.org/0X0318s8iW0C

with:

             .setCollectorFun(slot(dataset, 'handle'), NULL)
             .Call('RGDAL_CloseDataset', dataset, PACKAGE="rgdal")
             .Call("RGDAL_CloseHandle", slot(dataset, 'handle'),
                 PACKAGE="rgdal")

Running under Windows, and using:

http://download.sysinternals.com/files/Handle.zip

to check, the three transient datasets are open:

   3B8: File  (RW-)   C:\Users\rsb\AppData\Local\Temp\Rtmp8kZk0N\awlr2.tif
   3C0: File  (RW-)   C:\Users\rsb\AppData\Local\Temp\Rtmp8kZk0N\tfur1.tif
   498: File  (RW-)   C:\Users\rsb\AppData\Local\Temp\Rtmp8kZk0N\mxbr3.tif

I'm assuming that RW- means read and write open, the third character is D, 
which is probably directory.

Roger