Bug report #4794
Raster NULLs are coloured
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||14649|
A loaded raster looks OK in greyscale. If I apply Pseudocolor, Freak out or Color map, the NULLs are (wrongly) coloured. Until recently it was not so.
#5 Updated by Giovanni Manghi over 7 years ago
- File float32.tif added
- File float64.tif added
- File int32.tif added
- File int16.tif added
- File clipped.tif added
imported the attached raster (clipped.tif) into GRASS and then with r.null made pixels with "0" value into NULLS. I then exported the GRASS raster with r.out.gdal.tiff choosing different formats: int16, int32, float32 and float64. After adding the resulting rasters into QGIS I see that NULLS are wrongly coloured just in the int32 raster, while the in the others is correctly transparent.
#8 Updated by Casey Vandenberg about 7 years ago
- File blue_null_Value.png added
I am not sure if this is a related problem or not, although I suspect it is as the null values within raster layers I add to QGIS are also improperly coloured.
I have a series of raster layers in a grass database. When I add any of these raster layers using the Grass plugin, the null values are all coloured blue.
If I export the layers to a .tif + .tfw file, and add the tif into QGIS, the null values are handled correctly and appear transparent.
I have seen this problem at work on machines running 11.04, 12.04 on Linux and Windows