[gdal-dev] adding metadata -mo in a domain?

Even Rouault even.rouault at spatialys.com
Tue Sep 19 17:19:26 PDT 2023


Not from cli. From the API, it is dataset.SetMetadataItem(key, value, 
domain)

Le 20/09/2023 à 02:14, Michael Sumner a écrit :
> When we add metadata with -mo can we somehow specify the DOMAIN it 
> would be added to, or be instantiated with?
>
> gdal_translate gcore/data/float32.tif /tmp/add_md.vrt -mo PHONY=important
>
> I would like to tweak that so that the item was in a new domain, i.e.
>
>
>   <Metadata>
>     <MDI key="AREA_OR_POINT">Area</MDI>
>   </Metadata>
>   <Metadata domain="IMAGE_STRUCTURE">
>     <MDI key="INTERLEAVE">BAND</MDI>
>   </Metadata>
>   <Metadata domain="MY_NEW_DOMAIN">
>     <MDI key="PHONY">important</MDI>
>   </Metadata>
>
> Is that possible from cli?
>
> Thank you
>
>
> -- 
> Michael Sumner
> Software and Database Engineer
> Australian Antarctic Division
> Hobart, Australia
> e-mail: mdsumner at gmail.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230920/c099cfdf/attachment.htm>


More information about the gdal-dev mailing list