Skip to content

Commit

Permalink
Merge pull request #39144 from elpaso/bugfix-gh39142-pgraster-float-n…
Browse files Browse the repository at this point in the history
…odata

PG raster fix #39142 nodata float
  • Loading branch information
elpaso committed Oct 2, 2020
2 parents 6de82d6 + 65e8776 commit 375a258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/raster/qgspostgresrasterprovider.cpp
Expand Up @@ -1081,7 +1081,7 @@ bool QgsPostgresRasterProvider::init()
mSrcHasNoDataValue.append( true );
mUseSrcNoDataValue.append( true );
}
mSrcNoDataValue.append( nodataValue );
mSrcNoDataValue.append( QgsRaster::representableValue( nodataValue, type ) );
++i;
}

Expand Down Expand Up @@ -1356,7 +1356,7 @@ bool QgsPostgresRasterProvider::init()
nodataValue = std::numeric_limits<double>::min();
}

mSrcNoDataValue.append( nodataValue );
mSrcNoDataValue.append( QgsRaster::representableValue( nodataValue, type ) );
mSrcHasNoDataValue.append( true );
mUseSrcNoDataValue.append( true );
}
Expand Down

0 comments on commit 375a258

Please sign in to comment.