Class: QgsRasterCalculatorEntry¶
Represents an individual raster layer/band number entry within a raster calculation.
Static Methods
Creates a list of raster entries from the current project. |
Attributes
Band number for entry. |
|
Raster layer associated with entry. |
|
Name of entry. |
- class qgis.analysis.QgsRasterCalculatorEntry[source]¶
Bases:
object
- bandNumber¶
Band number for entry. Numbering for bands usually starts at 1 for the first band, not 0.
- raster¶
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¶
Name of entry.