[Gdal-dev] colormap problem using gdal_translate
guillaume.huby.lists at gmail.com
Mon Aug 7 05:37:56 EDT 2006
I'm using FWTools1.0.5.
I use gdal_translate to convert a BIP+HDR+CLR file to a tif file :
gdal_translate toto.bip toto.tif
I have a problem with the output color map : all colors are shift by one
index. For exemple the color of index 2 in the bip file is associated to
index 3 in tif file, and so on. Index 0 is set to black (R=0, G=0, B=0) and
the color of index 255 in bip file is no longer in new color map.
gdal_translate -mo "TIFFTAG_PHOTOMETRIC=3" toto.bip toto.tif
wich helps nothing.
Did I do something wrong ?
Is there any way to solve this ?
Thanks for your help,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gdal-dev