Re: [gdal-dev] palette file format doc ?

2024-03-20 Thread Even Rouault via gdal-dev
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,

Re: [gdal-dev] palette file format doc ?

2024-03-20 Thread Michael Sumner via gdal-dev
> > > > > 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

Re: [gdal-dev] palette file format doc ?

2024-03-20 Thread Even Rouault via gdal-dev
Michael, Le 20/03/2024 à 21:38, Michael Sumner via gdal-dev a écrit : Is the palette_file  .txt format documented? https://gdal.org/programs/gdalattachpct.html It's mentioned in a few utilities, and created by tests but I couldn't find an existing example or a description (I guessed,

[gdal-dev] palette file format doc ?

2024-03-20 Thread Michael Sumner via gdal-dev
Is the palette_file .txt format documented? https://gdal.org/programs/gdalattachpct.html It's mentioned in a few utilities, and created by tests but I couldn't find an existing example or a description (I guessed, incorrectly at first, leaving out the index column). I take it that it is 0-255