Hi everyone.
The version of ExifTool I am using is 11.69. I have been trying to copy metadata from one GeoTIFF file to another. Most of the information I need copied is fine, but I have run into some issues when dealing with the tags GeoKeyDirectoryTag and GeoDoubleParamsTag. The original GeoTIFF works fine in QGIS. When I open the new GeoTIFF with the copied metadata I receive a warning of
Warning 1: TIFFFetchNormalTag:Incompatible type for "GeoKeyDirectory"; tag ignored
Warning 1: TIFFFetchNormalTag:Incompatible type for "GeoDoubleParams"; tag ignored
When I look at the tags I see
GeoKeyDirectoryTag (b'\x01\x00\x01\x00\x00\x00\x08\x00\x00\x04\x00\x00\x01\x00\x01\x00\x01\x04\x00\x00\x01\x00\x01\x00\x02\x04\xb1\x87"\x00\x00\x00\x01\x08\xb1\x87\x0c\x00"\x00\x06\x08\x00\x00\x01\x00\x8e#\x0e\x08\xb0\x87\x03\x00\x00\x00\x00\x0c\x00\x00\x01\x00\x97\x0b\x04\x0c\x00\x00\x01\x00+#',)
GeoDoubleParamsTag (b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',)
Where the original GeoTIFF has
GeoKeyDirectoryTag (1, 1, 0, 8, 1024, 0, 1, 1, 1025, 0, 1, 1, 1026, 34737, 34, 0, 2049, 34737, 12, 34, 2054, 0, 1, 9102, 2062, 34736, 3, 0, 3072, 0, 1, 2967, 3076, 0, 1, 9003)
GeoDoubleParamsTag (0.0, 0.0, 0.0)
The command I used was
exiftool -TagsFromFile '/file/path/to/original' -exif:all '/file/path/to/new'
Is there a way for me to copy the metadata like it is with the original GeoTIFF? I am new with ExifTool and dealing with metadata so I would not doubt that I missed something important.
Thanks
What is the byte order of these files?:
exiftool -exifbyteorder FILE
- Phil
Hi Phil,
The original GeoTIFF has
Exif Byte Order : Little-endian (Intel, II)
And the GeoTIFF with copied metadata has
Exif Byte Order : Little-endian (Intel, II)
OK, thanks. So it isn't a byte order problem.
Yes. ExifTool does write these tags with an incorrect format type. I'll look into this.
Thanks for this report.
- Phil
Edit: I can see this with the new -validate feature:
> exiftool a.tif -validate -warning -a
Validate : 2 Warnings
Warning : Non-standard format (undef) for IFD0 0x87af GeoTiffDirectory
Warning : Non-standard format (undef) for IFD0 0x87b0 GeoTiffDoubleParams
This will be fixed in ExifTool 11.70
Your welcome, I hoped it was a problem with what I did.
Thank you for the quick replies.
ExifTool 11.70 is now available, and should solve this problem.
- Phil