[gdal-dev] gdaldem color-relief -exact_color_entry results in RGB 000

paul.malm at lfv.se paul.malm at lfv.se
Mon May 17 00:23:50 PDT 2021


Hi list, I've tried to use exact_color_entry on a DEM-tif file.
gdaldem color-relief 55.tif colornr.cpt 55_colrel.tif -of GTiff -exact_color_entry -co COMPRESS=LZW -b 1
Resulting in a blank rastefile (0 0 0).
I've picked (info) the colors in QGIS and there are a lot of pixels in the span of the color table below and QGis is presenting the values as integers.
It works fine with Nearest_color_entry.
Any ideas?
Kind regards,
Paul

colornr.cpt looks like this:
40 0 255 255
41 0 255 255
43 255 255 0
44 0 255 255
45 255 0 0
46 255 255 0
47 0 255 255
48 255 0 0
49 255 255 0
50 0 255 0
51 0 0 255
52 0 0 255
53 0 0 255
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210517/774c78dd/attachment.html>


More information about the gdal-dev mailing list