[gdal-dev] An issue about using GDALWARP todotheNTv2transformation

heng.feng heng.feng at aircominternational.com
Mon Jan 24 07:56:21 EST 2011


Thanks for your quick response, Uwe. Yes, all the tif files have got the same color table. I checked that and added the -pct option. But I think I forgot to remove the old merged one I generated without the -pct option. Now that I have removed the old merged one, a merged colored tif file is successfully generated after running the same command :)
________________________________
From: Schmitz, Uwe [via OSGeo.org] [ml-node+5954610-1691648657-308251 at n2.nabble.com]
Sent: 24 January 2011 09:24
To: Heng Feng
Subject: AW: [gdal-dev] An issue about using GDALWARP todotheNTv2transformation

Heng,

>
> Hi Uwe,
>
> I have been trying to use gdal_merge.py to merge
> a few 8 bit colored .tif tiles together. Having
> tried all sorts of options for this command, I
> always ended up with a merged 8-bit grayscale picture.
> I did a search on the internet and found a couple of
> posts related to this, however it seemed to me that
> the gdal_merge.py just does not have the ability
> to preserve the color. Did I get the wrong idea about
> this? Do you have any suggestion to solve this problem?
>
you have to specify "-pct" to grab the color table
of the first merged tile for the result file.
And, very important, all input tiles need to have
the *same* color table, because merging is done
on pixel values (that means channels).

> Not sure if I should post a separate message for
> this gdal_merge.py issue.  I just thought this would
> be the quickest way to get the help :)
>
Yes, IMO a seperate post would have been better and
addressing it to me wouldn't always help to get a fast
response ;-)

Regards
Uwe
_______________________________________________
gdal-dev mailing list
[hidden email]<UrlBlockedError.aspx>
http://lists.osgeo.org/mailman/listinfo/gdal-dev


________________________________
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1803224.n2.nabble.com/An-issue-about-using-GDALWARP-to-do-the-NTv2-transformation-tp5838904p5954610.html
To unsubscribe from An issue about using GDALWARP to do the NTv2 transformation, click here<http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5838904&code=aGVuZy5mZW5nQGFpcmNvbWludGVybmF0aW9uYWwuY29tfDU4Mzg5MDR8MTI3MzEwMjEw>.

AIRCOM International
Mobile World Congress 2011, 14-17 February
Stand 1B14, Barcelona, Spain
Click mailto:events at aircominternational.com?subject=Mobile%20World%20Congress%20'11%20meeting%20-%20Appointement%20Booking to book a meeting

Disclaimer: 
This e-mail message is confidential and should not be used by, or disclosed to, anyone except the addressee. If you receive this message in error, please advise us immediately on +44 (0) 1932 442000. Since e-mail transmission is not secure or error free, we do not accept responsibility for changes to any e-mail which occur after it has been sent. Attachments to this e-mail may contain software viruses which could damage your systems. You should therefore virus-check all attachments before opening. AIRCOM may monitor incoming and outgoing emails through its networks and by responding to this email, you consent to such monitoring. The views and opinions expressed in this e-mail are those of the author only and not of AIRCOM. We do not intend to enter into any legal commitments or contracts by e-mail. Registered Office: Cassini Court, Randalls Research Park, Randalls Way, Leatherhead, Surrey, KT22 7TW, UK. AIRCOM International Ltd registered in England No. 3052022. VAT number 811 5323 68.
Save a tree. Don't print this e-mail unless it's really necessary

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/An-issue-about-using-GDALWARP-to-do-the-NTv2-transformation-tp5838904p5955057.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110124/1af7714f/attachment.html


More information about the gdal-dev mailing list