[gdal-dev] access multiple files with VRT

Even Rouault even.rouault at mines-paris.org
Sat Sep 18 11:31:44 EDT 2010


Martin,

I'm not sure how this would work. If you need to access each .bin file, you 
need a .vrt for each of them...

Le samedi 18 septembre 2010 16:53:06, Matin80 a écrit :
> Dear all,
> 
> I have plenty of binary files which I access through a VRT file. This works
> fine with the following lines:
> 
> <VRTDataset rasterXSize="1440" rasterYSize="400">
>   <Geotransform>0,0.25,0,50, 0,-0.25</Geotransform>
>   <SRS>WGS84</SRS>
>   <VRTRasterBand dataType="Float32" band="1" subClass="VRTRawRasterBand">
>     <SourceFilename
> relativeToVRT="1">3B42_daily.2009.01.01.6.bin</SourceFilename>
>     <ByteOrder>MSB</ByteOrder>
>     <ImageOffset>0</ImageOffset>
>     <PixelOffset>4</PixelOffset>
>     <LineOffset>5760</LineOffset>
>   </VRTRasterBand>
> </VRTDataset>
> 
> now my question: is it possible to access all ".bin" files in the same
> directory with a single VRT without having to use the same block again and
> again for every single file?
> 
> greetings,
> Martin


More information about the gdal-dev mailing list