QGIS API Documentation
3.8.0-Zanzibar (11aff65)
|
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 39 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 651 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 69 of file qgsrastercalculator.h.
QgsRasterLayer* QgsRasterCalculatorEntry::raster = nullptr |
Raster layer associated with entry.
Definition at line 64 of file qgsrastercalculator.h.
QString QgsRasterCalculatorEntry::ref |
Name of entry.
Definition at line 59 of file qgsrastercalculator.h.