Bug report #21505

Raster Symbology, Paletted/Unique values not respecting selected band

Added by Andrew Harvey about 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:3.6.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29322

Description

I have a 4 band raster loaded into QGIS, under the layer Symbology I've chosen "Paletted/Unique values" and selected Band 3 to be the source of those values. Selecting classify with random colors, all the vales are represented correctly, however the actual raster is rendered based on Band 1, not based on the selected Band 3. I would expect selecting band 3 could cause it to use band 3 in the rendering.

Screenshot from 2019-03-07 11-44-14.png (68.5 KB) Andrew Harvey, 2019-03-07 01:43 AM

PortHacking201304-LID1-AHD_3306226_56_0002_0002_1m.trgb.deflate.tiff (4.77 MB) Andrew Harvey, 2019-03-07 01:50 AM

Associated revisions

Revision 76482cf1
Added by Nyall Dawson about 5 years ago

Fix paletted raster renderer does not respect correct band when rendering

Fixes #21505

Revision 0f020bcd
Added by Nyall Dawson about 5 years ago

Fix paletted raster renderer does not respect correct band when rendering

Fixes #21505

Revision 12ba4175
Added by Nyall Dawson about 5 years ago

Fix paletted raster renderer does not respect correct band when rendering

Fixes #21505

Revision 863c2c02
Added by Nyall Dawson about 5 years ago

Fix paletted raster renderer does not respect correct band when rendering

Fixes #21505

Revision d73da224
Added by Nyall Dawson about 5 years ago

Fix paletted raster renderer does not respect correct band when rendering

Fixes #21505

History

#1 Updated by Andrew Harvey about 5 years ago

My workaround is to use `gdal_translate -b3` to pull out band 3 into a 1 band image and use that in QGIS.

#2 Updated by Nyall Dawson about 5 years ago

  • Status changed from Open to In Progress

#3 Updated by Nyall Dawson about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF