<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Louis-Philippe,</p>
    <p>there's no recommendation. Each format or community within a
      format may have different practices.</p>
    <p>Some formats may accept some odd characters (but definitely not
      '=', as key/value pairs are stored as "key=value" strings
      internally), but keeping to alphanumeric + underscore is the best
      way to be universally accepted.<br>
    </p>
    <p>That said you'd better not use several metadata keys that only
      defer by case, otherwise you're going to confuse a lot of places
      in GDAL as comparisons are done in a case insensitive way. I mean:
      "foo" and "BAR" are fine within the same metadata. But not "foo",
      "Foo" and "FOO".</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 30/01/2023 à 16:54, Rousseau
      Lambert,Louis-Philippe (ECCC) a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:7681d312-ff48-a9ce-05b7-e4b41e56d2ae@ec.gc.ca">
      <p>Hi everyone ! <br>
      </p>
      <p>I would like to know if there is a rule or a best practice for
        a raster file's metadata key to be written in upper or lower
        case ? <br>
      </p>
      <p> I read <a class="moz-txt-link-freetext"
          href="https://gdal.org/user/raster_data_model.html#metadata"
          moz-do-not-send="true">https://gdal.org/user/raster_data_model.html#metadata</a>
        and saw that "<i>The names are required to be well behaved
          tokens (no spaces, or odd characters</i><i>).</i>" but I
        didn't read anything about upper vs lower cases. While I see
        examples of both (upper and lower case) in different valid
        files, I would like to know if a documented recommendation
        exists ?<br>
      </p>
      <p>Thanks</p>
      <p>LP<br>
      </p>
      <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>