[gdal-dev] translating palettes in geotiff

David Strip gdal at stripfamily.net
Tue Apr 23 13:46:46 PDT 2013


On 4/23/2013 2:12 PM, Jukka Rahkonen wrote:
> rgb2pct.py utilityhttp://www.gdal.org/rgb2pct.html  is doing kind of similar
> thing with the -pct option.
>
> -Jukka Rahkonen-

I looked at the reference, but don't see how this would work. Seems like 
I would have to first translate the geotiff to an RGB, but even then I 
don't see how the pct option would let me do an arbitrary mapping of 
colors. Wouldn't the underlying algorithm look for a best match against 
the palette?



More information about the gdal-dev mailing list