<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Frank,<br><br>I've noticed some issues when using /vsimem/ to open a VRT dataset (among other formats).&nbsp; 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.<br><br>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).&nbsp; So it tries to open the same /vsimem/ VRT that was modified, but it still has the old geotransform.&nbsp; 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.<br><br>-- Dan Greve<br>-- Palm Bay, FL<br><br /><hr />Hotmail® has ever-growing storage! Don’t worry about storage limits. <a href='http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009' target='_new'>Check it out.</a></body>
</html>