[Qgis-user] combining individual tif files into a multiband tif file
Maciej Sieczka
tutey at o2.pl
Sat Jun 7 16:06:47 PDT 2008
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
--
Maciej Sieczka
www.sieczka.org
More information about the Qgis-user
mailing list