<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>FLIR should be fined. It has a "PamFlagKeeper
      oKeeper(nPamFlags);" guard that makes sure to restore the PAM
      flags to its initial value after metadata has been set<br>
    </p>
    <div class="moz-cite-prefix">Le 03/11/2025 à 17:08, Javier Jimenez
      Shaw a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CADRrdKs2cSOG8Gs8u7P5nN_ch5-wsXhdZB+qirH4=hTh+P-+rA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Thank you Even!</div>
        <div><br>
        </div>
        <div>Probably the same is needed for FLIR, as DJI logic was
          based in FLIR code also in jpgdataset.cpp</div>
      </div>
      <br>
      <div class="gmail_quote gmail_quote_container">
        <div dir="ltr" class="gmail_attr">On Mon, 3 Nov 2025 at 17:04,
          Even Rouault <<a href="mailto:even.rouault@spatialys.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">even.rouault@spatialys.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
          Javier,<br>
          <br>
          .aux.xml file is no longer generated on opening per <br>
          <a
href="https://github.com/OSGeo/gdal/commit/2ad4ebf4ddcaa74af2d4cea212fb61f0ac382f20"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://github.com/OSGeo/gdal/commit/2ad4ebf4ddcaa74af2d4cea212fb61f0ac382f20</a><br>
          <br>
          Even<br>
          <br>
          Le 03/11/2025 à 10:13, Javier Jimenez Shaw via gdal-dev a
          écrit :<br>
          > Hi<br>
          ><br>
          > When I read some raster files (in particular thermal JPEG
          files), a <br>
          > side car file .aux.xml appears next to it.<br>
          ><br>
          > I would like to avoid the creation of this side car file,
          but I want <br>
          > to use any .aux.xml file if it is already there. Yes, I
          could imagine <br>
          > there is a performance impact if I read it several times,
          but I am <br>
          > going to read the file only once.<br>
          ><br>
          > The config option GDAL_PAM_ENABLED seems to be completely
          disabling <br>
          > PAM functionality:<br>
          > <a
href="https://gdal.org/en/stable/user/configoptions.html#persistent-auxiliary-metadata-pam-options"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://gdal.org/en/stable/user/configoptions.html#persistent-auxiliary-metadata-pam-options</a><br>
          > Reading the documentation, I would imagine that the PAM
          is completely <br>
          > disabled, not only the creation of the side car file
          while reading a <br>
          > raster.<br>
          ><br>
          > Is it posible to not create the .aux.xml, but use it if
          present?<br>
          ><br>
          > Thank you<br>
          ><br>
          > _______________________________________________<br>
          > gdal-dev mailing list<br>
          > <a href="mailto:gdal-dev@lists.osgeo.org"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><br>
          > <a
            href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"
            rel="noreferrer" target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
          <br>
          -- <br>
          <a href="http://www.spatialys.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">http://www.spatialys.com</a><br>
          My software is free, but my time generally not.<br>
          <br>
        </blockquote>
      </div>
    </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>