That's a shame. I just might have to write my own GDAL tool to accomplish this then (should be a fun way to learn the GDAL library as well). I've tried converting to RGB and going from there, but the resulting file sizes become very large in comparison and take hours to merge.<br>
<br><div class="gmail_quote">On Wed, Jan 5, 2011 at 2:12 PM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 11-01-05 04:06 PM, MyKillK wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hello all,<br>
<br>
My question is simple. Is it possible to combine two GeoTIFFs, each with its<br>
own unique color palette into a single image that is properly color mapped?<br>
Each image only has 16 colors so I feel like it should be possible to copy<br>
Image #1's color table straight into indexes 0-15 and then remap Image #2's<br>
color table to indexes 16-31. For the life of I can't figure out how this<br>
can be done, it always wants to use Image #1's color table alone in the<br>
merged TIFF.<br>
</blockquote>
<br></div>
Michael,<br>
<br>
I am not aware of any existing GDAL application to do this. You could<br>
use pct2rgb.py on each image, merge the RGB images, and then use rgb2pct.py<br>
to produce a paletted image from the result that would likely have 32 colors.<br>
<br>
Best regards,<br><font color="#888888">
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush | Geospatial Programmer for Rent</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael Koehmstedt<br>