# Merge Two Geotiff Grids

**URL:** <https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810>\
**Category:** MapWinGIS\
**Created:** [December 28, 2024, 10:30pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810 "2024-12-28T22:30:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![josimar.alves](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@josimar.alves](https://mapwindow.discourse.group/u/josimar.alves)\
**Post date:** [December 28, 2024, 10:30pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810/1 "2024-12-28T22:30:50Z")

</div>

Does anyone know how I can merge two geotiff GRIDs using MW OCX?  
I’m trying to do this in Pascal/Delphi, but have had no success using it with the GRIDMERGE function.  
Is there another way to do this, using GDAL?  
I would appreciate it if anyone can help me.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [December 28, 2024, 11:31pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810/2 "2024-12-28T23:31:48Z")

</div>

Hello Josimar

If there is a way to do this through MW, it would be utilizing the GDAL library. I would suggest posting on the GDAL website/forum to find a solution.

Kind Regards,  
Jerry

---

<div class="post-metadata">

**Author:** ![josimar.alves](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@josimar.alves](https://mapwindow.discourse.group/u/josimar.alves)\
**Post date:** [December 29, 2024, 12:49pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810/3 "2024-12-29T12:49:34Z")

</div>

Thanks Jerry.  
I found that is really possible to do this using GDAL\_MERGE in this link  
[https://gdal.org/en/stable/programs/gdal\_merge.html](https://gdal.org/en/stable/programs/gdal_merge.html)  
Do you know if can I call this function directly from MW OCX by code?  
Because it use a string of input files instead a array of grid parameter like GRID\_MERGE function. It would realy help me and its easy to call frm Delphi.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [December 30, 2024, 11:59pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810/4 "2024-12-30T23:59:46Z")

</div>

Hello Josimar.

There is a method in the Utils class, [Utils.MergeImages()](https://www.mapwindow.org/mapwingis/class_utils.html#a880ea976f712d62799473411029152d5), that may be what you are looking for. It doesn’t look like it is specifically mapped to the GDAL\_MERGE program, but you can try it and see what you get.

Regards,  
Jerry

---

<div class="post-metadata">

**Author:** ![josimar.alves](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@josimar.alves](https://mapwindow.discourse.group/u/josimar.alves)\
**Post date:** [July 25, 2025, 6:42pm UTC](https://mapwindow.discourse.group/t/merge-two-geotiff-grids/1810/5 "2025-07-25T18:42:48Z")

</div>

thaks Jerry. I fix that.
