Skip to content

Commit

Permalink
PG raster: silence warning on NULL nodata value
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 15, 2020
1 parent abb84ef commit d342298
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/providers/postgres/raster/qgspostgresrasterprovider.cpp
Expand Up @@ -853,9 +853,12 @@ bool QgsPostgresRasterProvider::init()
double nodataValue { noDataValues.at( i ).toDouble( &ok ) };
if ( ! ok )
{
QgsMessageLog::logMessage( tr( "Cannot convert nodata value '%1' to double" )
.arg( noDataValues.at( i ) ),
QStringLiteral( "PostGIS" ), Qgis::Info );
if ( noDataValues.at( i ) != QStringLiteral( "NULL" ) )
{
QgsMessageLog::logMessage( tr( "Cannot convert nodata value '%1' to double" )
.arg( noDataValues.at( i ) ),
QStringLiteral( "PostGIS" ), Qgis::Info );
}
mSrcHasNoDataValue.append( false );
mUseSrcNoDataValue.append( false );
nodataValue = std::numeric_limits<double>::min();
Expand Down

0 comments on commit d342298

Please sign in to comment.