[gdal-dev] Setting colours for some pixel values.

Julius Jancevičius julius.jancevicius at s2p.lt
Mon Apr 25 07:17:26 PDT 2022


Good afternoon, Sir/Madam

 �

I have a .tiff file where are 6 values (1, 2, 3, 4, 5, 6). This is a test of the classification algorithm (1 – Water, etc.) I am trying to set colors for that, code: 

 �

It sets colors, but all others are set to black. From 7 to 65536 (including 0) code sets the color black. Is it possible to set values just from 1 to 6?

 �

Pagarbiai

Julius Jancevičius

 �

Programuotojas

UAB „S2P“

Solutions to Perform
Adresas: Ukmergės g. 251, 

LT - 07100, Vilnius

Tel: +370 683 99470

El. p.:  <mailto:julius.jancevicius at s2p.lt> julius.jancevicius at s2p.lt

 <http://www.s2p.lt/> http://www.s2p.lt

 �

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220425/38e20309/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 45005 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220425/38e20309/attachment-0001.png>


More information about the gdal-dev mailing list