Skip to content
Permalink
Browse files
apply user no data to identify
  • Loading branch information
blazek committed Oct 19, 2012
1 parent e192e39 commit 0e889ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -444,6 +444,13 @@ QMap<int, QVariant> QgsGrassRasterProvider::identify( const QgsPoint & thePoint,

if ( qIsNaN( value ) ) value = noDataValue( 1 );

// Apply user no data
QList<QgsRasterBlock::Range> myNoDataRangeList = userNoDataValue( 1 );
if ( QgsRasterBlock::valueInRange( value, myNoDataRangeList ) )
{
value = noDataValue( 1 );
}

results.insert( 1, value );

return results;
@@ -1731,6 +1731,13 @@ QMap<int, QVariant> QgsWcsProvider::identify( const QgsPoint & thePoint, Identif
return results;
}

// Apply user no data
QList<QgsRasterBlock::Range> myNoDataRangeList = userNoDataValue( i );
if ( QgsRasterBlock::valueInRange( value, myNoDataRangeList ) )
{
value = noDataValue( i );
}

results.insert( i, value );
}

0 comments on commit 0e889ea

Please sign in to comment.