[Qgis-user] Four band raster displaying funny
Jukka Rahkonen
jukka.rahkonen at mmmtike.fi
Mon Dec 2 12:30:39 PST 2013
Jonathan Moules <jonathanmoules at ...> writes:
>
>
> Further testing indicates that the same (optimal) result can be had using
a combination of a vrt and gdal_translate without having to manually bother
with memory management.
Hi,
I can confirm that question is in GDAL which by default considers four band
images as RGBA which is also documented in http://www.gdal.org/frmt_gtiff.html
The following gdal_merge command gives a good result when source bands are
in four separate tiff files and it is possible to select bands 1-2-3 for
natural colour or 4-2-1 for false colour infrared in QGIS.
gdal_merge.py -separate -of GTiff -co photometric=rgb -co compress=jpeg
-o fourband_rgb_jpeg.tif 1.tif 2.tif 3.tif 4.tif
-Jukka Rahkonen-
More information about the Qgis-user
mailing list