[gdal-dev] Gdal_edit with -mo removes existing metadata

Even Rouault even.rouault at spatialys.com
Tue Jan 13 09:45:04 PST 2015


Selon Jukka Rahkonen <jukka.rahkonen at maanmittauslaitos.fi>:

> Hi,
>
> I noticed that when I tried to add one TIFFTAG metadata item with
> gdal_edit.py by using the -mo option it wrote my new metadata and wiped away
> all the existing TIFFTAG metadata. For the desired result I had to give the
> whole list of metadata tags with repeated -mo options. Is this intentional
> behaviour? Could it be possible to change behaviour so that -mo adds or
> overwrites just the given metadata item and keeps others untouched? Or to
> keep the current way but introduce a new -add_mo option?

Jukka,

This wasn't intended as far as I recall. I've change -mo to add to existing
metadata, and added a -unsetmd option to be able to reset existing metdata (can
be combined with -mo to clean and replace)

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list