I am using the Gdal-Raster Calculator in QGIS to clip a Input-Raster (3-Bands RGB (A,B,C)) by another Raster (D) (containing 0/1-Values) by using the expression (AD)+(BD)+(C*D), which works well. However the Output contains only one single Band (grey1).

Is there a possibility to get an output with all three input Bands again?

1 Answer 1


OK, I noticed there is an "--allBands" Option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.