Bug report #3049
GdalTools: merging images with different colormaps
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||13109|
To mosaic colormapped images with different colormaps, you need to first convert the images to 24bit RGB format (with pct2rgb.py).
So, in the gdal tools merge tool would be nice to
add and advice
add a test to see if the problem occurs and then throw a warning
Note that a similar problem occurs also with gdalbuildvrt: the resulting colormap is the one of the first input raster. The result is a raster with a wrong colormap in at least 50% of its extensions.