Bug report #4794
Raster NULLs are coloured
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Rasters | ||
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 |
Description
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.
History
#1 Updated by Paolo Cavallini almost 13 years ago
Moreover, if I apply the transparency band to the raster (Band 1), the NULLs are transparent, but the raster looks weird.
#2 Updated by Giovanni Manghi almost 13 years ago
Please attach sample data.
#3 Updated by Paolo Cavallini almost 13 years ago
- File clip_nulls added
#4 Updated by Giovanni Manghi almost 13 years ago
After importing the attached sample raster into GRASS the NULLs are wrongly coloured, also when using the greyscale colormap.
#5 Updated by Giovanni Manghi almost 13 years ago
- File float32.tif added
- File float64.tif added
- File int32.tif added
- File int16.tif added
- File clipped.tif added
Another test:
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.
#6 Updated by Giovanni Manghi almost 13 years ago
Giovanni Manghi wrote:
After adding the resulting rasters into QGIS I see that NULLS are wrongly coloured just in the int32 raster.
also with the greyscale color map.
#7 Updated by Giovanni Manghi almost 13 years ago
- Subject changed from Raster NULLs are coloured in pseudocolor (etc.) mode to Raster NULLs are coloured
#8 Updated by Casey Vandenberg over 12 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
#9 Updated by Giovanni Manghi over 12 years ago
- Status changed from Open to Feedback
This issue should have been fixed in qgis master, please
try and report back.
#10 Updated by Paolo Cavallini over 12 years ago
- Target version set to Version 2.0.0
#11 Updated by Giovanni Manghi about 12 years ago
- Status changed from Feedback to Closed
- Resolution set to fixed
This is fixed in master. Please reopen if necessary.