Class: QgsRasterCalculatorEntry

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

Static Methods

rasterEntries

Creates a list of raster entries from the current project.

Attributes

bandNumber

Band number for entry.

raster

Raster layer associated with entry.

ref

Name of entry.

class qgis.analysis.QgsRasterCalculatorEntry[source]

Bases: object

bandNumber: int

Band number for entry. Numbering for bands usually starts at 1 for the first band, not 0.

raster: QgsRasterLayer

Raster layer associated with entry.

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

Name of entry.