[gdal-dev] reading raster from memory

Even Rouault even.rouault at spatialys.com
Wed Jan 21 07:20:31 PST 2026


> Hi Javier,
> Calling VSIFCloseL is not deleting the data before 
> calling GDALDataset::Open?
No, closing a file doesn't delete it, even on /vsimem/
> Calling VSIUnlink is not loosing the access to the data in poRawDS, 
> before it can be used?

Not if there's at least one file descriptor still open on it, which is 
the case since poRawDS keeps a file descriptor open until it is 
destroyed. This is following POSIX semantics.

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list