Skip to content

Commit

Permalink
PG raster fix #39142 nodata float
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Oct 2, 2020
1 parent ad6254a commit 65e8776
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 65e8776

Please sign in to comment.