Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -86,7 +86,7 @@ Sets the maximum value for the range. |
|
|
|
|
|
void setBounds( BoundsType type ); |
|
|
%Docstring |
|
|
Setss the bounds ``type`` for the range, which specifies |
|
|
Sets the bounds ``type`` for the range, which specifies |
|
|
whether or not the min and max values themselves are included |
|
|
in the range. |
|
|
|
|
@@ -95,7 +95,7 @@ in the range. |
|
|
.. versionadded:: 3.2 |
|
|
%End |
|
|
|
|
|
bool operator==( QgsRasterRange o ) const; |
|
|
bool operator==( const QgsRasterRange &o ) const; |
|
|
|
|
|
bool contains( double value ) const; |
|
|
%Docstring |
|
|
|
@@ -273,7 +273,7 @@ bool QgsReclassifyByTableAlgorithm::_prepareAlgorithm( const QVariantMap &, QgsP |
|
|
QVector<QgsReclassifyUtils::RasterClass> QgsReclassifyByTableAlgorithm::createClasses( QgsReclassifyUtils::RasterClass::BoundsType boundsType, const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback * ) |
|
|
{ |
|
|
const QVariantList table = parameterAsMatrix( parameters, QStringLiteral( "TABLE" ), context ); |
|
|
int rows = table.count() / 3; |
|
|
const int rows = table.count() / 3; |
|
|
QVector< QgsReclassifyUtils::RasterClass > classes; |
|
|
for ( int row = 0; row < rows; ++row ) |
|
|
{ |
|
|
|
@@ -92,15 +92,15 @@ class CORE_EXPORT QgsRasterRange |
|
|
double setMax( double max ) { return mMax = max; } |
|
|
|
|
|
/** |
|
|
* Setss the bounds \a type for the range, which specifies |
|
|
* Sets the bounds \a type for the range, which specifies |
|
|
* whether or not the min and max values themselves are included |
|
|
* in the range. |
|
|
* \see bounds() |
|
|
* \since QGIS 3.2 |
|
|
*/ |
|
|
void setBounds( BoundsType type ) { mType = type; } |
|
|
|
|
|
inline bool operator==( QgsRasterRange o ) const |
|
|
inline bool operator==( const QgsRasterRange &o ) const |
|
|
{ |
|
|
return ( ( std::isnan( mMin ) && std::isnan( o.mMin ) ) || qgsDoubleNear( mMin, o.mMin ) ) |
|
|
&& ( ( std::isnan( mMax ) && std::isnan( o.mMax ) ) || qgsDoubleNear( mMax, o.mMax ) ) |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.