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.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to