Solved

GeoTiff palette issue - strange numbers of palette displaying in QGIS

  • 15 December 2022
  • 2 replies
  • 2 views

I have simple script with adding color palette to raster ASC after cell value replacer .

In ouput GeoTIFF i received too many palette colors represented with black color. |

obraz_2022-12-15_094950356In attachment i send script.

 

It's possible to have only 3 selected colors without black numbers?

icon

Best answer by virtualcitymatt 15 December 2022, 14:23

View original

2 replies

Userlevel 4
Badge +26

So to do this you need to coerce the output raster to UInt8 and then set the number of "Bits per cell" to 2 (in the advanced FeatureType parameters). This will give you a maximum of four values. (0-4)

Great, it works correctly,

thank you so much

Reply