Skip to content

Commit 80c12b5

Browse files
committed
Extend documentation
1 parent 18854dc commit 80c12b5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

python/analysis/auto_generated/raster/qgsrastercalculator.sip.in

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ Represents an individual raster layer/band number entry within a raster calculat
2525

2626
static QList<QgsRasterCalculatorEntry> rasterEntries();
2727
%Docstring
28-
Creates a list of raster entries from the current project
28+
Creates a list of raster entries from the current project.
29+
30+
If there are more than one layers with the same data source
31+
only one of them is added to the list, duplicate names are
32+
also handled by appending an _n integer to the base name.
2933

3034
:return: the list of raster entries form the current project
35+
36+
.. versionadded:: 3.6
3137
%End
3238

3339
QString ref;

src/analysis/raster/qgsrastercalculator.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ class ANALYSIS_EXPORT QgsRasterCalculatorEntry
4141
public:
4242

4343
/**
44-
* Creates a list of raster entries from the current project
44+
* Creates a list of raster entries from the current project.
45+
*
46+
* If there are more than one layers with the same data source
47+
* only one of them is added to the list, duplicate names are
48+
* also handled by appending an _n integer to the base name.
49+
*
4550
* \return the list of raster entries form the current project
51+
* \since QGIS 3.6
4652
*/
4753
static QList<QgsRasterCalculatorEntry> rasterEntries();
4854

0 commit comments

Comments
 (0)