<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Jan,<br>
      <br>
      You can cut result raster with the geometry (shape file) using
      gdalwarp with cutline option (<a class="moz-txt-link-freetext" href="http://gdal.org/gdalwarp.html">http://gdal.org/gdalwarp.html</a>).<br>
      <br>
      Best regards,<br>
          Dmitry<br>
      <br>
      27.12.2012 16:38, Jan Hartmann пишет:<br>
    </div>
    <blockquote cite="mid:50DC415A.30401@uva.nl" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <font face="Times New Roman, Times, serif">Can anyone tell me wath
        is happening here? I have a large three-band raster (3.8G)
        looking like this:</font><br>
      <br>
      <font face="Times New Roman, Times, serif"><a
          moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://mapserver.sara.nl/map2a.png">http://mapserver.sara.nl/map2a.png</a></font><br>
      <br>
      <font face="Times New Roman, Times, serif">I compress it (from
        information from this list a few days ago) with:<br>
        <br>
        gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR big.tif
        small.tif<br>
        gdaladdo --config COMPRESS_OVERVIEW JPEG --config
        PHOTOMETRIC_OVERVIEW YCBCR -ro -r gauss small.tif 2 4 8 16 32 64<br>
        <br>
        and get a file of 37M, which is nice. However, the map has all
        kinds of rubbish at the borders. It looks like this:<br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://mapserver.sara.nl/map2b.png">http://mapserver.sara.nl/map2b.png</a><br>
        <br>
        The equivalent pictures of a small part of the map look like
        this:<br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://mapserver.sara.nl/map1a.png">http://mapserver.sara.nl/map1a.png</a><br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="http://mapserver.sara.nl/map1b.png">http://mapserver.sara.nl/map1b.png</a>
        <br>
        <br>
        Can anyone help me?<br>
        <br>
        Jan<br>
      </font> <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>