QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Represents an individual raster layer/band number entry within a raster calculation. More...
#include <qgsrastercalculator.h>
Static Public Member Functions | |
static QVector< QgsRasterCalculatorEntry > | rasterEntries () |
Creates a list of raster entries from the current project. More... | |
Public Attributes | |
int | bandNumber = 1 |
Band number for entry. More... | |
QgsRasterLayer * | raster = nullptr |
Raster layer associated with entry. More... | |
QString | ref |
Name of entry. More... | |
Represents an individual raster layer/band number entry within a raster calculation.
Definition at line 40 of file qgsrastercalculator.h.
|
static |
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.
Definition at line 731 of file qgsrastercalculator.cpp.
int QgsRasterCalculatorEntry::bandNumber = 1 |
Band number for entry.
Numbering for bands usually starts at 1 for the first band, not 0.
Definition at line 70 of file qgsrastercalculator.h.
QgsRasterLayer* QgsRasterCalculatorEntry::raster = nullptr |
Raster layer associated with entry.
Definition at line 65 of file qgsrastercalculator.h.
QString QgsRasterCalculatorEntry::ref |
Name of entry.
Definition at line 60 of file qgsrastercalculator.h.