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 File Permissions : rw-rw-rw- File Type : BTF File Type Extension : btf MIME Type : image/x-tiff-big
I run this code: <gdal_translate D:\temp\cushing_north_high_high_mosaic_7.45cm_utm14_wgs84_meters_2019-01-17.tif D:\temp\cushing_north_high_high_mosaic_7.45cm_utm14_wgs84_meters_2019-01-17_Copy.tif -mo *TIFFTAG_DATETIME="2019:01:31 09:00:00-07:00"* -co COMPRESS=LZW -co BIGTIFF=YES> And I got the following metadata for some reason: ExifTool Version Number : 11.79 File Name : cushing_north_high_high_mosaic_7.45cm_utm14_wgs84_meters_2019-01-17_Copy.tif Directory : D:/temp File Size : 2.9 GB File Modification Date/Time : 2019:12:17 09:36:11+02:00 File Access Date/Time : 2019:12:17 10:33:22+02:00 File Creation Date/Time : 2019:12:17 09:34:43+02:00 File Permissions : rw-rw-rw- File Type : BTF File Type Extension : btf MIME Type : image/x-tiff-big Image Width : 28194 Image Height : 38514 Bits Per Sample : 8 8 8 8 Compression : LZW Photometric Interpretation : RGB Strip Offsets : (Binary data 409063 bytes, use -b option to extract) Samples Per Pixel : 4 Rows Per Strip : 1 Strip Byte Counts : (Binary data 231034 bytes, use -b option to extract) Planar Configuration : Chunky *Modify Date : 2019:01:31 09:00:00-07:00* Predictor : None Extra Samples : Unassociated Alpha Sample Format : Unsigned; Unsigned; Unsigned; Unsigned Pixel Scale : 0.0744678000000016 0.0744678000000023 0 Model Tie Point : 0 0 0 701489.300385367 3989064.72829922 0 Geo Tiff Directory : (Binary data 106 bytes, use -b option to extract) Geo Tiff Ascii Params : (Binary data 29 bytes, use -b option to extract) GDAL Metadata : <GDALMetadata>. <Item name="UNITTYPE" sample="0" role="unittype">metre</Item>. <Item name="UNITTYPE" sample="1" role="unittype">metre</Item>. <Item name="UNITTYPE" sample="2" role="unittype">metre</Item>. <Item name="UNITTYPE" sample="3" role="unittype">metre</Item>.</GDALMetadata>. Image Size : 28194x38514 Megapixels : 1085.9 I need to add a tag *"Date Time", but not "Modify Date"*. I was doing the same for a few BigTIFF rasters, but with the same results. Ideally, I want to add a tag *"Capture Date Time"*, but, I found, that GDAL can deal with the following baseline TIFF tags as dataset-level metadata: [https://gdal.org/drivers/raster/gtiff.html#metadata] Thanks, Andriy -- Best regards, Andriy Marchak! Skype: m2r42k_bear phone: +38 063 147 95 95 (WhatsApp)
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev