QgsRasterCalculatorEntry class
Represents an individual raster layer/band number entry within a raster calculation.
Contents
- Reference
Public static functions
- static auto rasterEntries() -> QVector<QgsRasterCalculatorEntry>
- Creates a list of raster entries from the current project.
Public variables
- int bandNumber
- Band number for entry.
- QgsRasterLayer* raster
- Raster layer associated with entry.
- QString ref
- Name of entry.
Function documentation
static QVector<QgsRasterCalculatorEntry> QgsRasterCalculatorEntry:: rasterEntries()
Creates a list of raster entries from the current project.
| Returns | the list of raster entries form 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.
Variable documentation
int QgsRasterCalculatorEntry:: bandNumber
Band number for entry.
Numbering for bands usually starts at 1 for the first band, not 0.