[gdal-dev] palette file format doc ?
Even Rouault
even.rouault at spatialys.com
Wed Mar 20 17:55:18 PDT 2024
Le 21/03/2024 à 01:43, Michael Sumner a écrit :
>
>
>
> > And, can index be *value* in any contexts?
>
> If you use a raster with a signed data type, that could be negative
> values (assuming I understand your question)
>
>
>
> ah I see, arbitrary integer values map to a colour 0:(n-1) colours,
> match the ordered n values in the raster - that is "value" in the way
> I was thinking ( I had in mind more general cases like interval
> ranges, but that's another level up)
>
> I might be entirely messing up the concept ... will check my take by
> experiment.
It was wrong about negative values. As this script ultimately writes a
GDALColorTable, you must use >=0 indices.
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240321/f47f7471/attachment.htm>
More information about the gdal-dev
mailing list