Please sign in to comment.
QgsRasterFileWriter::writeDataRaster(): do not set nodata on output w…
…hen unneeded Currently if the source raster has no nodata value, the writer will still write nan as the output nodata value, ignoring the flag that specifies if there is a nodata value or not. On a raster with byte data type, this will cause confusion on reading since the nodata value will be somehow cast as 0. Make QgsRasterChecker check for nodata consistency between source and target, and add a test file that shows the issue.
- Loading branch information
Showing with 13 additions and 5 deletions.
BIN +736 Bytes tests/testdata/raster/byte.tif
Binary file not shown.