<div dir="ltr">Hi,<div><br></div><div style>GDAL 1.4.5 is ancient.  Consider upgrading.  The last release was 1.10.0.</div><div style><br></div><div style>Your commandline looks ok.  Without knowing much about your input images or what your output looks like it is hard to judge what went wrong. </div>
<div style><br></div><div style>Are img1.img, img2.img and img3.img spatially distinct?  Is the produced mosaic the right extents to hold all the input images?  </div><div style><br></div><div style>One thing to keep in mind is that if mosaic.img already exists it will just be written into, not recreated.  So if you created it once with the wrong size, subsequent runs won't recreate it the right size for everything. </div>
<div style><br></div><div style>Best regards,</div><div style>Frank</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 30, 2013 at 10:36 PM, adi_khan <span dir="ltr"><<a href="mailto:adiba.nizami@gmail.com" target="_blank">adiba.nizami@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using gdal 1.4.5 and wish to use gdal_merge to mosaic *.img images.<br>
<br>
The command runs successfully (no error is reported) but the output file<br>
contains the last input image and not mosaiced output.<br>
I use openEV to see the output file.<br>
<br>
This is how is used the command :<br>
<br>
gdal_merge.py -of HFA -o mosaic.img  img1.img img2.img img3.img<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/gdal-merge-does-not-mosaic-tp5057095.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/gdal-merge-does-not-mosaic-tp5057095.html</a><br>
Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">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>
</blockquote></div><br><br clear="all"><div><br></div>-- <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/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Software Developer<br>
</div>