[Gdal-dev] RE: VRT File Format

Frank Warmerdam warmerdam at pobox.com
Wed Sep 20 16:56:49 EDT 2006


Matt Hanson wrote:
> So, can anyone verify VRT files work ?    My sample VRT is as simple as the one in the documentation and GDAL is not parsing it correctly.

Matt,

I changed the SourceFilename to point to a file on my system, and then
gdalinfo on the file worked for me.  This was with GDAL from CVS.

Best regards,

> Encountered another problem with the VRT files, but different then my other post - to work around that issue for now I am using absolute pathnames.   But when I try to read in the VRT file below I get
> ERROR 1: Corrupt of empty VRT source XML document.
>  
> Here's my VRT file:
>  
> *********************************************************************************************
> <VRTDataset rasterXSize="400" rasterYSize="400">
> 
> <VRTRasterBand dataType="Int16" band="1">
> 
> <SimpleSource>
> 
> <SourceFilename>C:\Documents and Settings\mhanson\Flux\testimages\MISI_28jun02</SourceFilename>
> 
> <SourceBand>1</SourceBand>
> 
> <SrcRect xOff="0" yOff="0" xSize="400" ySize="400"/>
> 
> <DstRect xOff="0" yOff="0" xSize="400" ySize="400"/>
> 
> </SimpleSource>
> 
> </VRTRasterBand>
> 
> </VRTDataset>
> 
> ********************************************************************
> 
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 
> 


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list