<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Alisson,<br>
    <br>
    It's not so easy to follow what is "desired" and "not-desired". For
    an excellent discussion of the details involved in such operations
    see<br>
    <br>
<a class="moz-txt-link-freetext" href="http://blogs.mathworks.com/steve/2006/12/22/poly2mask-and-roipoly-part-3/">http://blogs.mathworks.com/steve/2006/12/22/poly2mask-and-roipoly-part-3/</a><br>
    <br>
    As a solution for your 'wish-behavior'  case maybe what you can do
    is to previously expand your polygon with a buffer of half cell
    width. <br>
    <br>
    Joaquim<br>
    <br>
    <blockquote
cite="mid:CALwK9YwmLfBNnDi7Sh_CF+ysFROvBw3Ka_=eukNj1+Y8Auk_Xg@mail.gmail.com"
      type="cite">
      <div>Hi friends,<br>
        <br>
        By using gdalwarp to clip a raster with a mask (shape), I get a
        new raster of smaller size, which is the boundary of the polygon
        shape (mask). However, the pixels do not pass the polygon. I
        would like to pass the pixels just a little of the polygon mask.<br>
        <br>
        For clarity, I send two pictures of what I desire and not
        desire:<br>
        <a moz-do-not-send="true"
          href="http://postimage.org/image/hlrc3911z/">http://postimage.org/image/hlrc3911z/</a>         
        <br>
        <a moz-do-not-send="true"
          href="http://postimage.org/image/4vn3q5t3r/">http://postimage.org/image/4vn3q5t3r/</a><br>
        <br>
      </div>
      The used command is: gdalwarp -dstnodata 0 -q -cutline
      C:/Users/Hugo/Final.shp -crop_to_cutline -of GTiff
      C:/Users/Hugo/Elevation-DEM-CLIPPED.img
      C:/Users/Hugo/Elevation-DEM-CLIPPED.img
      <div class="gmail_quote">
        <div>
          <div><img moz-do-not-send="true"
              src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
        </div>
        <div>
          <br>
          Can you help me?<br>
          <br>
          Best Regards,<br>
        </div>
      </div>
      -- <br>
      Alisson Barbosa
      <div>Systems Analyst - FUNCEME
        <div><span lang="en"><span title="Clique para mostrar traduções
              alternativas">M.Sc. in Computer Science</span><span
              title="Clique para mostrar traduções alternativas"> - MACC</span></span>
          <div>
            <div>Graduate in Computer Science  - UECE</div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>