Re: [gdal-dev] Problem using VSIMem to open VRT dataset

2009-06-28 Thread Even Rouault
Dan, I'm not sure if I've completely understood what you meant but here's a small python script that tries to reproduce what I've understood from your scenario : import gdal content = """ 100,1,0,100,0,-1 """ gdal.FileFromMemBuffer('/vsimem/test.vrt', content) ds = gdal.Open('/vsimem/

[gdal-dev] Problem using VSIMem to open VRT dataset

2009-06-25 Thread Dan Greve
Frank, I've noticed some issues when using /vsimem/ to open a VRT dataset (among other formats). The code usually fails @ GDALClose or FlushCache, when the dataset tries to perform a VSIMemFile::SetLength, and ultimately a realloc. Many formats I can only VSIUnlink, and don't try to close the