<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=windows-1255"
      http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="preferred-charset"
    bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 29/05/2014 16:42, Mark Seibel wrote:<br>
    </div>
    <blockquote
cite="mid:CADHQGE3ji=Vf+_dmf35wt9TSnYdaK=5iG1h7bdD5Ru_QKahU9w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">Hi.<br>
          <br>
          <div class="gmail_quote">On Thu, May 29, 2014 at 9:25 AM,
            Randal Hale <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:rjhale@northrivergeographic.com"
                target="_blank">rjhale@northrivergeographic.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">I have
              two Digital Elevation Models - Imagine a square cut into
              two equal triangles.<br>
              <br>
              No matter how I do it - One DEM overwrites the other one
              so I'm only ever getting half of the elevation model I
              want when I merge them.<br>
            </blockquote>
            <div>... </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Thoughts or ideas?<br>
              <br>
              Randy<br>
              <br>
              <br>
            </blockquote>
            <div>Is there a GRASS function in QGIS for r.patch?  It uses
              both datasets, and uses one to fill the NULL values of
              another.  Would probably have to make sure the
              computational region is set to accommodate the extent of
              merging both DEMs (maybe not necessary if r.patch doesnt
              regard region settings).</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    The way to do this in GRASS is with the isnull() function in
    r.mapcalc<br>
    Here's an example from the man page:<br>
    <br>
    <p>
      Example: The users wants the NULL-valued cells to be treated like
      zeros. To
      add maps A and B (where B contains NULLs) to get a map C the user
      can use a
      construction like:</p>
    <p>
    </p>
    <div class="code">C=A + if(isnull(B),0,B)
      <br>
      <br>
      <br>
      And,as Mark mentioned, be sure to set your region to cover both
      maps from the start<br>
    </div>
    <br>
    <blockquote
cite="mid:CADHQGE3ji=Vf+_dmf35wt9TSnYdaK=5iG1h7bdD5Ru_QKahU9w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div>Mark</div>
            <div> </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      This mail was received via Mail-SeCure System.<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
This mail was received via Mail-SeCure System.


</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
GIS Consulting
052-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
  </body>
</html>