4

I can write some metadata to GeoTIFF with gdal_translate using -mo, example:

gdal_translate in.tif out.tif -mo TIFFTAG_ARTIST="It was me" -mo TIFFTAG_IMAGEDESCRIPTION="This data my layer"

I suppose that it should be possible to do the same job with other GDAL v2.x utils (gdalwarp, gdal_calc.py, etc.), but I could not find, how. Is there such option?

OR

Should I always use gdal_translate for this job?

The problem with gdal_translate is that it always creates a NEW file. I work with large GeoTIFFs. So just to add some lines of metadata takes o lot of time. Is there a way just to add Metadata to GeoTIFF without re-creating it again?

1 Answer 1

6

You can use gdal_edit.py:

gdal_edit.py -mo TIFFTAG_ARTIST="It was me" in.tif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.