Class: QgsRasterCalculatorEntry

Represents an individual raster layer/band number entry within a raster calculation.

class qgis.analysis.QgsRasterCalculatorEntry[source]

Bases: object

bandNumber: int
raster: QgsRasterLayer
static rasterEntries() List[QgsRasterCalculatorEntry]

Creates a list of raster entries from the current project.

If there is more than one layer with the same data source only one of them is added to the list, duplicate names are also handled by appending an _n integer to the base name.

Return type:

List[QgsRasterCalculatorEntry]

Returns:

the list of raster entries form the current project

Added in version 3.6.

ref: str