Skip to content
Permalink
Browse files

apply user no data to identify

  • Loading branch information
blazek committed Oct 19, 2012
1 parent e192e39 commit 0e889ea0a56699f13c1d2ea07e19f943403a54d3
Showing with 14 additions and 0 deletions.
  1. +7 −0 src/providers/grass/qgsgrassrasterprovider.cpp
  2. +7 −0 src/providers/wcs/qgswcsprovider.cpp
@@ -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.
You can’t perform that action at this time.