<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Not from cli. From the API, it is dataset.SetMetadataItem(key,
      value, domain)<br>
    </p>
    <div class="moz-cite-prefix">Le 20/09/2023 à 02:14, Michael Sumner a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAcGz9-snf_z0EAebcc7LoD0P61ArubNnNXD5JM5DTDNscwZag@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>When we add metadata with -mo can we somehow specify the
          DOMAIN it would be added to, or be instantiated with? </div>
        <div><br>
        </div>
        <div>gdal_translate gcore/data/float32.tif /tmp/add_md.vrt -mo
          PHONY=important<br>
        </div>
        <div><br>
        </div>
        <div>I would like to tweak that so that the item was in a new
          domain, i.e. </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>  <Metadata><br>
              <MDI key="AREA_OR_POINT">Area</MDI><br>
            </Metadata><br>
            <Metadata domain="IMAGE_STRUCTURE"><br>
              <MDI key="INTERLEAVE">BAND</MDI><br>
            </Metadata><br>
        </div>
        <div>  <Metadata domain="MY_NEW_DOMAIN"><br>
              
              <MDI key="PHONY">important</MDI><br>
            </Metadata><br>
        </div>
        <div><br>
        </div>
        <div>Is that possible from cli? </div>
        <div><br>
        </div>
        <div>Thank you</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <span class="gmail_signature_prefix">-- </span><br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">Michael Sumner<br>
          Software and Database Engineer<br>
          Australian Antarctic Division<br>
          Hobart, Australia<br>
          e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">mdsumner@gmail.com</a></div>
      </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>