Nikon LocationInfo Tags

Started by KonJarek, May 08, 2014, 06:02:20 AM

Previous topic - Next topic

KonJarek

1. Wrong field size for Nikon LocationInfo Tags, field 0x00005

1) Windows XP
2) ExifTool version 9.59
3) -MakerNotes:CountryCode=POL
4) "string too long for Nikon:CountryCode Nothing to do"

Field Country Code should be a string(3).

2.
1) Windows XP
2) ExifTool version 9.59
3) -MakerNotes:TextEncoding=1
    -MakerNotes:TextEncoding=2
4)
case 1 wrong value - should be UTF8
case 2 "Warning: Can't convert Nikon:TextEncoding (not in PrintConv) Nothing to do"

Values for this field are:
0 = n/a
1 = UTF8
2 = UTF16

3. Another problem is missing definition for field 0x00008 of Nikon LocationInfo Tags. This field is 1 byte long and contains POI level (range 1-6).
Functionality tested on Nikon AW 110. Without setting field 8 (POI Level) camera doesn't recognize that picture has a location data.

Phil Harvey

#1
Quote from: KonJarek on May 08, 2014, 06:02:20 AM
3) -MakerNotes:CountryCode=POL
4) "string too long for Nikon:CountryCode Nothing to do"

Your string is too long.  As mentioned in the tag name documentation, the string length includes a null terminator.  If 3-character country codes are possible in this field, then it is not null terminated and I should change the format from string to undef.  Edit: I checked some samples, and this field doesn't have a null terminator, so I will change the writable type to 'undef' in ExifTool 9.60.

Quote3) -MakerNotes:TextEncoding=1
case 2 "Warning: Can't convert Nikon:TextEncoding (not in PrintConv) Nothing to do"

See FAQ 6 for help with this.

Quote3. Another problem is missing definition for field 0x00008 of Nikon LocationInfo Tags. This field is 1 byte long and contains POI level (range 1-6).

Excellent, thanks!  I will add support for this in ExifTool 9.60.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).