Extend documentation

This commit is contained in:
Alessandro Pasotti 2018-11-29 12:35:09 +01:00
parent 18854dc7b6
commit 80c12b590a
2 changed files with 14 additions and 2 deletions

View File

@ -25,9 +25,15 @@ Represents an individual raster layer/band number entry within a raster calculat
static QList<QgsRasterCalculatorEntry> rasterEntries();
%Docstring
Creates a list of raster entries from the current project
Creates a list of raster entries from the current project.
If there are more than one layers 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: the list of raster entries form the current project
.. versionadded:: 3.6
%End
QString ref;

View File

@ -41,8 +41,14 @@ class ANALYSIS_EXPORT QgsRasterCalculatorEntry
public:
/**
* Creates a list of raster entries from the current project
* Creates a list of raster entries from the current project.
*
* If there are more than one layers 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 the list of raster entries form the current project
* \since QGIS 3.6
*/
static QList<QgsRasterCalculatorEntry> rasterEntries();