Skip to main content
Solved

GeoTiff palette issue - strange numbers of palette displaying in QGIS

  • December 15, 2022
  • 2 replies
  • 14 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?

Best answer by virtualcitymatt

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)

View original
Did this help you find an answer to your question?

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35
  • Celebrity
  • Best Answer
  • December 15, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings