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

Dan Greve grevedan at hotmail.com
Thu Jun 25 16:13:18 EDT 2009


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 dataset. I was going to submit a bug report.

I'm trying to SetGeotransform like the tfw to 0,1,0,0,0,-1 in order to perform a pixel space gdalwarp interopolation (i've actually wrapped the gdal utilities into a single DLL to perform more integrated exception handling).  So it tries to open the same /vsimem/ VRT that was modified, but it still has the old geotransform.  Short term i'll probably add a parameter to the utilities to pass the GDALDataset (source and destination) back and from from GDALWarp, but it's a little more code i have to merge with each GDAL version upgrade.

-- Dan Greve
-- Palm Bay, FL

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090625/949f3b0c/attachment.html


More information about the gdal-dev mailing list