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.
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
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
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!
Hello Josimar.
There is a method in the Utils class, Utils.MergeImages(), 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