I see this note about GDALTranslateOptionsSetMetadataOptions()
GDALTranslateOptionsAddMetadataOptions() which don't seem to exist. Is that just an outdated comment? https://github.com/OSGeo/gdal/blob/8122e2c39f72317a803cd24ee1fb5d6a44a97596/apps/gdal_translate_lib.cpp#L200-L201 Thanks! On Wed, Sep 20, 2023 at 6:40 PM Even Rouault <even.roua...@spatialys.com> wrote: > Sounds OK to me > Le 20/09/2023 à 02:32, Michael Sumner a écrit : > > Thanks Even, could add a AttachDomainMetadata here that expected "-dmo > DOMAIN:META-TAG=VALUE" > > > https://github.com/OSGeo/gdal/blob/a4b57c22606be2258196a933d310f301e3ece93f/apps/gdal_translate_lib.cpp#L2625 > > I'll try that, or is it too much over-reach? > > Ultimately it's for vrt:// con so could do > > vrt://{dsn}?dmo=DOMAIN:META-TAG=VALUE > > Cheers, Mike > > > > On Wed, Sep 20, 2023 at 10:19 AM Even Rouault <even.roua...@spatialys.com> > wrote: > >> 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: mdsum...@gmail.com >> >> _______________________________________________ >> gdal-dev mailing >> listgdal-dev@lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev >> >> -- http://www.spatialys.com >> My software is free, but my time generally not. >> >> > > -- > Michael Sumner > Software and Database Engineer > Australian Antarctic Division > Hobart, Australia > e-mail: mdsum...@gmail.com > > _______________________________________________ > gdal-dev mailing > listgdal-dev@lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev > > -- http://www.spatialys.com > My software is free, but my time generally not. > > -- Michael Sumner Software and Database Engineer Australian Antarctic Division Hobart, Australia e-mail: mdsum...@gmail.com
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev