[Qgis-user] combining individual tif files into a multiband tif file

Agustin Lobo Agustin.Lobo at ija.csic.es
Sun Jun 8 02:51:15 PDT 2008


Great! This is what I was looking for!
Where did you learn about it? It's not
listed in http://www.gdal.org/gdal_utilities.html

Thanks!

Agus

Maciej Sieczka escribió:
> Otto Dassau pisze:
> 
>> to produce layer stacks you can use gdal_merge.py, e.g.:
>> gdal_merge.py -v image.tif -separate blue.tif green.tif red.tif
> 
> I recommend gdal_vrtmerge.py [1]. It produces a "virtual raster" (vrt 
> format) which can be loaded into QGIS. The vrt file is just few lines 
> text, doesn't duplicate your input data, but apart from that it behaves 
> pretty much like a multiband GeoTIFF.
> 
> Use it like:
> 
> gdal_vrtmerge.py -separate -o tm2.vrt *.tif
> 
> (Without -separate it will fail [2]).
> 
> [1]http://trac.osgeo.org/gdal/attachment/ticket/1985/gdal_vrtmerge.py
> [2]http://trac.osgeo.org/gdal/ticket/1985#comment:3
> 
> Maciek
> 

-- 
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at ija.csic.es
http://www.ija.csic.es/gt/obster



More information about the Qgis-user mailing list