Skip to content

Commit a2042a4

Browse files
committed
Expose a method to Python
1 parent 0ab6327 commit a2042a4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

python/core/auto_generated/raster/qgsrasterrange.sip.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ Sets the maximum value for the range.
6464

6565
bool operator==( QgsRasterRange o ) const;
6666

67+
static bool contains( double value, const QgsRasterRangeList &rangeList );
68+
%Docstring
69+
Tests if a ``value`` is within the list of ranges
70+
71+
:param value: value
72+
:param rangeList: list of ranges
73+
74+
:return: true if value is in at least one of ranges
75+
%End
6776

6877
};
6978

src/core/raster/qgsrasterrange.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ class CORE_EXPORT QgsRasterRange
8080
* \param value value
8181
* \param rangeList list of ranges
8282
* \returns true if value is in at least one of ranges
83-
* \note not available in Python bindings
8483
*/
85-
static bool contains( double value, const QgsRasterRangeList &rangeList ) SIP_SKIP;
84+
static bool contains( double value, const QgsRasterRangeList &rangeList );
8685

8786
private:
8887
double mMin = std::numeric_limits<double>::quiet_NaN();

0 commit comments

Comments
 (0)