diff --git a/python/analysis/auto_generated/raster/qgsrastercalculator.sip.in b/python/analysis/auto_generated/raster/qgsrastercalculator.sip.in index 7ec62a4af77..a8a9d052bd6 100644 --- a/python/analysis/auto_generated/raster/qgsrastercalculator.sip.in +++ b/python/analysis/auto_generated/raster/qgsrastercalculator.sip.in @@ -25,9 +25,15 @@ Represents an individual raster layer/band number entry within a raster calculat static QList 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; diff --git a/src/analysis/raster/qgsrastercalculator.h b/src/analysis/raster/qgsrastercalculator.h index 7239405fdc9..cdf91e35d51 100644 --- a/src/analysis/raster/qgsrastercalculator.h +++ b/src/analysis/raster/qgsrastercalculator.h @@ -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 rasterEntries();