I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-01-14 22:15:34.280748-08 by msbc
Format of GPSVersionID
Phil,

Could you clarify the format for writing the GPSVersionID tag.
I've read many posts elsewhere and there seem to be many variations on what people think is the correct format, here are some of them:
0.0.2.2
2,2,0,0
2 2 0 0

Mark
Direct Responses: 12197 | Write a response
Posted on 2010-01-15 04:47:03.191447-08 by exiftool in response to 12196
Re: Format of GPSVersionID
Hi Mark,

Yes, looking at my sample images I can see there is some confusion about this, although I don't know why because both the EXIF and XMP specifications are quite clear. The correct format is "2.2.0.0". In XMP this is stored as a simple text string, while in EXIF exiftool handles translation of this to the 4-byte value. ExifTool does no translation when writing XMP:GPSVersionID, so the string must be in the correct format to begin with. When writing EXIF:GPSVersionID exiftool also accepts spaces instead of decimal points between the numbers.

- Phil
Direct Responses: 12198 | Write a response
Posted on 2010-01-15 04:52:17.585245-08 by exiftool in response to 12197
Re: Format of GPSVersionID
I should point out that since this tag is mandatory by EXIF specification, exiftool writes this tag automatically when a new GPS IFD is created. So if you are using ExifTool you shouldn't need to write this tag yourself.

- Phil
Direct Responses: 12200 | Write a response
Posted on 2010-01-15 21:25:36.042776-08 by msbc in response to 12198
Re: Format of GPSVersionID
Phil,
I use PhotoMechanic to Geotag my RAW images, which does set the GPSVersionID. I have some TIF's and JPG's that seem to have the GPS coords but are missing the VersionID so I'm fixing these images.

I'm writing a shell script (bash, OSX) to test all my images for the correct value but am noticing some inconsistencies if the tag is not present. The exiftool command i'm using is:

exiftool -filename -if 'not $gpsversionid eq "2.2.0.0"' DIR

If a file has a GPSVersionID tag which is not equal to 2.2.0.0 then this command works. If the file has no GPSVersionID tag at all then it fails - if I add -v2 I see the message:
Condition: Use of uninitialized value $info{"gpsversionid"} in string eq - ./IMG_0256.jpg
for each image.

Can you suggest a test that will work for the wrong value and also for images that don't have the tag at all?

Mark
Direct Responses: 12201 | Write a response
Posted on 2010-01-16 04:15:41.08939-08 by exiftool in response to 12200
Re: Format of GPSVersionID
Hi Mark,

This should do it for you:

-if 'not $gpsversionid or $gpsversionid ne "2.2.0.0"'

- Phil
Direct Responses: Write a response