[gdal-dev] gdalbuilvrt and multiband files

Even Rouault even.rouault at mines-paris.org
Tue Dec 6 13:43:00 EST 2011


Le mardi 06 décembre 2011 18:52:17, Jose Gomez-Dans a écrit :
> Hi,
> 
> I'm trying to build a VRT file out of a number of multiband files using
> gdalbuildvrt. Let's say I have N 7-band files, and I want build 7 N-band
> files (i.e., I want to stack all the bands in the same dataset). I have
> accomplished this thus far by having a prior step that creates a VRT for
> each individual band, and I then stack them using gdalbuildvrt -separate.

That's what I would have suggested to you if you didn't find it by yourself ;-)

> However, i was wondering whether there's any more direct way of doing this?

Not that I'm aware of. This becomes quite a specialized task, so it seems 
difficult to imagine a direct approach and a syntax to do that.

> I guess that one way would be to build the XML file directly,

Yes, I would recommend that.

> 
> Thanks!
> Jose


More information about the gdal-dev mailing list