Draw the images into a single BufferedImage. Wrap the BufferedImage up as a GridCoverage; and export the result as a geotiff.

The following page links to test cases showing how to read and write a geotiff file:
- http://docs.codehaus.org/display/GEOTDOC/GeoTIFF+Plugin

The render can be used to draw several images onto a buffered image; you will need to create a map context that has a maplayer for each image.

Jody

On 16/09/2009, at 3:27 PM, zeng wrote:

I need to implement it in java program. And I have never used python
在2009-09-16,"Christian Müller" <[email protected]> 写 道:
>If you want to do it from the command line, download
>
>http://fwtools.maptools.org/
>
>and use  "gdal_merge.py".
>
>Manpage
>http://www.gdal.org/gdal_merge.html
>
>
>
>
>zeng writes:
>
>> Hi, buddies
>> I want to merge several geotiff files to a single file in java. Could Geotools achieve it ? A simple example or any suggestions will be great appreciated.
>>
>
>


"中国制造",讲述中国60年往事 ------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to