<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Matt,</p>
    <p>There has been an enhancement in gdalwarp to support writing
      directly to drivers, like COG, that supports only the CreateCopy
      mode. So you don't need the 2 step process and can directly
      gdalwarp -of COG (it will more or less do the 2 steps internally)</p>
    <p>If you output to regular GTiff, the 2 step process might be
      needed to get the best compression</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 30/12/2021 à 22:29,
      <a class="moz-txt-link-abbreviated" href="mailto:Matt.Wilkie@yukon.ca">Matt.Wilkie@yukon.ca</a> a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:1f129e3650e044cdb82751b4b1784fd1@yukon.ca">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <div class="WordSection1">
        <p class="MsoNormal">A few years ago it was best practice to
          follow a gdal warp process with translate in order to get
          better compression, and even overall speed although extra disk
          write is involved. Is this still the case? and when using COG
          output driver?  e.g.</p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal"><span>gdalwarp infile.tif interim.tif</span></p>
        <p class="MsoNormal"><span>gdal_translate -of cog -co
            compress=zstd  interim.tif final.tif</span></p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">thanks!</p>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">
          <b><span lang="EN-US">Matt Wilkie</span></b><span lang="EN-US"></span></p>
        <p class="MsoNormal"><span lang="EN-US">Geomatics Developer
            & Administrator</span></p>
        <p class="MsoNormal"><span lang="EN-US">Environment
            <span>|</span> Technology, Innovation and Mapping</span></p>
        <p class="MsoNormal"><span lang="EN-US">T 867-667-8133
            <span>|</span> </span><u><span><a href="http://yukon.ca/"
                moz-do-not-send="true"><span lang="EN-US">Yukon.ca</span></a></span></u></p>
        <p class="MsoNormal"><i><span>Hours: 08:30-16:30, Mon-Wed:
              Office, Thu: Remote, Fri: Away.</span></i></p>
        <p class="MsoNormal"> </p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>