<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 4, 2013 at 2:57 PM, Rahkonen Jukka [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5057701&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
adi_khan <adiba.nizami <at> <a href="http://gmail.com" target="_blank" rel="nofollow" link="external">gmail.com</a>> writes:
<br></div><div class="im"><div><div class='shrinkable-quote'><br>>
<br>> <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5057631/inputimgs.jpg" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5057631/inputimgs.jpg</a>>
<br>> <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5057631/gdalinfo.jpg" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5057631/gdalinfo.jpg</a>>
<br>> <<a href="http://osgeo-org.1560.x6.nabble.com/file/n5057631/output.jpg" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5057631/output.jpg</a>>
<br>>
<br>> Hi all,
<br>> here please find the input and output I used.
<br>>
<br>> The attached images :
<br>> 1. First image is a snapshot of 2 input images in different views
<br>> 2. gdalinfo of first and second image.
<br>> 3. Output mosaic along with info.
<br>>
<br>> Note :
<br>> I used gdal_merge.py and gdalwarp as well. But the output remains the same.
</div></div></div><div class="im">Hi,
<br><br>Lambert conformal conic is totally unknown system to me and I am not sure if
<br>you should be able to use gdal_merge with your source images as they are at
<br>all. The gdal_merge document page says:
<br>"All the images must be in the same coordinate system and have a matching
<br>number of bands"
<br>If you compare the PROJCS parameters in the gdalinfo reports they are not
<br>the same but I do not what gdal_merge thinks about that.
<br><br>You were adviced to use gdalwarp as
<br></div><div class="im">gdalwarp -of HFA img1.img img2.img img3.img mosaic.img
<br><br></div><div class="im">I made some trials and it seems that if img1.img and img2.img are in
<br>different coordinate systems then gdalwarp does not create correct output.
<br>For me it is anyway not so good idea to run gdalwarp without giving -t_srs
<br>parameter. Why to let some program to decide the target projection if you
<br>can give it yourself and know for sure what will happen?
<br><br>Another thing is that your images have nodata areas which appears to be
<br>black. However, no colour is labeled as nodata colour in image metadata and
<br>therefore gdalwarp believes that black borders belong to the images.
<br><br>So my untested suggestion for the command is
<br><br>gdalwarp -of HFA -t_srs [some_definition_here] -srsnodata 0 0 0 img1.img
<br>img2.img mosaic.img
<br><br>-Jukka Rahkonen-
<br><br><br>_______________________________________________
<br>gdal-dev mailing list
<br></div><a href="http://user/SendEmail.jtp?type=node&node=5057691&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</div><a href="http://osgeo-org.1560.x6.nabble.com/gdal-merge-does-not-mosaic-tp5057095p5057691.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/gdal-merge-does-not-mosaic-tp5057095p5057691.html</a>
</div><div class="HOEnZb"><div class="h5">
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from gdal_merge does not mosaic, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Adiba Khan<br>
</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/gdal-merge-does-not-mosaic-tp5057095p5057701.html">Re: gdal_merge does not mosaic</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>