<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Jukka,</p>
    <p>I've realized this behaviour was actually documented in
      <a class="moz-txt-link-freetext" href="https://gdal.org/drivers/raster/gtiff.html#overviews-and-nodata-masks">https://gdal.org/drivers/raster/gtiff.html#overviews-and-nodata-masks</a>
      : "Internal overviews, external nodata mask: when running
      BuildOverviews() in update mode on the .tif file, only the
      overviews
      of the main bands will be generated. Overviews of the external
      .msk
      file must be explicitly generated by running BuildOverviews() on
      the
      .msk."</p>
    <p>... but just after fixing it in
      <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/9603">https://github.com/OSGeo/gdal/pull/9603</a> to do the expected thing:
      that is build overviews of the main bands and of the .msk</p>
    <p>I think it is also high time to reconsider switching the default
      value of GDAL_TIFF_INTERNAL_MASK to YES :
      <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/9604">https://github.com/OSGeo/gdal/pull/9604</a><br>
    </p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 03/04/2024 à 10:56, Rahkonen Jukka
      via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:DB9PR09MB688773407A4C1371363FCACEFD3D2@DB9PR09MB6887.eurprd09.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.Shkpostityyli17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-ligatures:none;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I was making some tests
            with filegdb raster from
          </span><a
href="https://www.fs.usda.gov/detail/r5/communityforests/?cid=fseprd1009698"
            moz-do-not-send="true"><span lang="EN-US">Region 5 - State
              (usda.gov)</span></a><span lang="EN-US">, file
            <a
href="https://usfs-public.box.com/shared/static/q96eev9gnsa9hw5bwpmwpmxerbdat0vi.zip"
              moz-do-not-send="true" class="moz-txt-link-freetext">
https://usfs-public.box.com/shared/static/q96eev9gnsa9hw5bwpmwpmxerbdat0vi.zip</a><br>
            I converted the data into GeoTIFF, added overviews, and
            noticed, that the GeoTIFF is very slow to browse with QGIS
            at small scales. I noticed that it is because gdal_translate
            creates an external .msk mask band, and gdaladdo does not
            create overviews for the mask.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Is is somehow possible
            to create overviews for the .msk mask either automatically
            or manually? Or would it create a bad mask that would not
            match with the corresponding overviews of the data bands?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></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>