Control order by which bands are stacked #25026
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: andre mano (andre mano)
Original Redmine Issue: 17127
Affected QGIS version: 2.18.12
Redmine category:processing/gdal
When using gdal-merge from the Processing toolbox, it is not possible to control the order by which the bands are to be stacked (screenshot attached). Example below:
For merging 7 Landsat bands into a single image this command is generated:
gdal_merge.bat -a_nodata -9999 -ot Float32 -separate -o "[temporary file]" -of GTiff
~/L5197024_02420100627_B10.TIF
~/L5197024_02420100627_B40.TIF (will become Band 2 when it should be band 4)
~/L5197024_02420100627_B50.TIF (and so on...)
~/L5197024_02420100627_B60.TIF
~/L5197024_02420100627_B30.TIF
~/L5197024_02420100627_B20.TIF
~/L5197024_02420100627_B70.TIF
User should have the possibility to control order so that the command would look like this:
gdal_merge.bat -a_nodata -9999 -ot Float32 -separate -o "[temporary file]" -of GTiff
~/L5197024_02420100627_B10.TIF
~/L5197024_02420100627_B20.TIF
~/L5197024_02420100627_B30.TIF
~/L5197024_02420100627_B40.TIF
~/L5197024_02420100627_B50.TIF
~/L5197024_02420100627_B60.TIF
~/L5197024_02420100627_B70.TIF
Related issue(s): #25225 (relates)
Redmine related issue(s): 17327
The text was updated successfully, but these errors were encountered: