mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
These algorithms calculate the boolean OR or AND for a set of input rasters. For AND, if all of the input rasters have a non-zero value for a pixel, that pixel will be set to 1 in the output raster, otherwise it will be set to 0. For OR, if ANY of the input rasters have a non-zero value for a pixel, that pixel will be set to 1 in the output raster, else 0. A reference layer parameter specifies an existing raster layer to use as a reference when creating the output raster. The output raster will have the same extent, CRS, and pixel dimensions as this layer By default, a nodata pixel in ANY of the input layers will result in a nodata pixel in the output raster. If the 'Treat nodata values as false' option is checked, then nodata inputs will be treated the same as a 0 input value. Makes for much simpler raster boolean logic calculation without the complexity of using the raster calculator (and that's not always possible to do anyway, e.g. when ANY of the input rasters has a nodata pixel). It's also scalable dynamic to any number of input rasters (unlike raster calc), so is more flexible when used within models.
60 KiB
60 KiB