[gdal-dev] An issue when trying to add TIFFTAG_DATETIME to BigTIFF raster

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Wed Dec 18 02:36:23 PST 2019


Hi,

You are looking at EXIF metadata that if read-only for GDAL
https://github.com/OSGeo/gdal/issues/828 but DateTime tag is also a baseline
TIFF tag 306 https://awaresystems.be/imaging/tiff/tifftags/datetime.html.

If I set metadata with
gdal_edit -mo TIFFTAG_DATETIME="2019:01:31 09:00:00-07:00" aaa.tif

I can see with the libtiff utility program "tiffinfo" that the item was
inserted correctly:

tiffinfo aaa.tif
...
 DateTime: 2019:01:31 09:00:00-07:00
...

I get the same result with "tiffset" utility
http://www.simplesystems.org/libtiff/man/tiffset.1.html

tiffset -s 306 "2019:01:31 09:00:00-07:00" aaa.tif

So everything seems to go right according to baseline tiff specification.
The EXIF specification https://www.exiv2.org/Exif2-2.PDF defines that
DateTime is the same tag number 306 and it means "File change date and
time". Finally having a look at EXIFtools documentation
https://exiftool.org/TagNames/EXIF.html reveals what happens: ModifyDate in
EXIFTools is the same tag that is called DateTime by the EXIF spec. There
seems to be no issue at all and you have correctly set the DateTime tag.

-Jukka Rahkonen-













Андрій Марчак wrote
> Hi,
> 
> I have an issue when trying to add TIFFTAG_DATETIME to BigTIFF raster.
> Here
> the input metadata:
> ExifTool` Version Number         : 11.79
> File Name                       :
> cushing_north_high_high_mosaic_7.45cm_utm14_wgs84_meters_2019-01-17.tif
> Directory                       : D:/temp
> File Size                       : 3.4 GB
> File Modification Date/Time     : 2019:12:17 11:25:48+02:00
> File Access Date/Time           : 2019:12:17 19:53:20+02:00
> File Creation Date/Time         : 2019:12:14 18:46:14+02:00





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list