<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Excellent Frank, thanks for the tips. I thought there might be a problem with the /vsimem/ since only the VRT XML would be passed as an in-mem buffer, the actual image data is in a disk file. I'll just pass the entire VRT XML for simplicity.<br><br>-- Dan<br><br>> Date: Thu, 11 Jun 2009 12:54:30 -0400<br>> From: warmerdam@pobox.com<br>> To: grevedan@hotmail.com<br>> CC: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] Regarding using VRT to open a raw file<br>> <br>> Dan Greve wrote:<br>> > I'm using the VRT schema to open a raw binary image file. I can <br>> > successfully access the image data by creating a VRT file with the <br>> > necessary metadata, and then perform GDALOpen using the filename of the <br>> > VRT file. Is there a clean way to just create the VRT metadata file in <br>> > memory, instead of having to create a VRT file on disk?<br>> <br>> Dan,<br>> <br>> I believe the VRT driver is unusual in that it allows passing the entire<br>> VRT XML contents as the filename to GDALOpen() instead of it being a file<br>> on disk.<br>> <br>> If the driver did not have this specific capacity, you could also use the<br>> /vsimem/ pseudo-filesystem handling to create the file in memory but have<br>> it appear to be on disk to most of the GDAL software.<br>> <br>> Best regards,<br>> -- <br>> ---------------------------------------+--------------------------------------<br>> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<br>> light and sound - activate the windows | http://pobox.com/~warmerdam<br>> and watch the world go round - Rush | Geospatial Programmer for Rent<br>> <br><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009' target='_new'>Check it out.</a></body>
</html>