Skip to main content
Solved

GeoTiff palette issue - strange numbers of palette displaying in QGIS

  • December 15, 2022
  • 2 replies
  • 24 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)

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • 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)


  • Author
  • 13 replies
  • December 15, 2022

Great, it works correctly,

thank you so much