XMP-exif:GPSMeasureMode (not in PrintConv)

Started by Mac2, December 13, 2021, 04:35:02 AM

Previous topic - Next topic

Mac2

I can successfully set  the GPS measure mode with:

-GPS:GPSMeasureMode="2-Dimensional Measurement"

but I cannot set the XMP equivalent with

-XMP-exif:GPSMeasureMode="2-Dimensional Measurement"

because this results in Warning: Can't convert XMP-exif:GPSMeasureMode (not in PrintConv)

Is there anything special about this tag or do I make a mistake?

Maybe related:

The GPS2XMP.args file does not import the GPS MeasureMode into the XMP GPS Measure Mode counterpart.
All other relevant GPS tags are imported just fine.


Phil Harvey

Interesting.  See the XMP-exif tags documentation for the reason.  I will have to fix this so the EXIF and XMP conversions are the same.

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

Mac2

Thanks, much appreciated  :)

I could find the 2 text values for the GPS data in the Perl source, but nothing similar for the XMP tag.
And the GPS2XMP.args file also looked OK to me (-XMP:all < GPS:all ...) and that's as far as I could analyze this... :-[

Phil Harvey

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

StarGeek

Quote from: Mac2 on December 13, 2021, 08:01:56 AMI could find the 2 text values for the GPS data in the Perl source, but nothing similar for the XMP tag.

From the docs




The print conversion tables for any tag will be in the notes column on the relevant Tag Names page.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Mac2

Aah...now I see it! Silly me  :-[

The text values are different for native GPS and EXIF GPS.
Hence the print conversion fails when copying from GPS to XMP via XMP2GPS and vice-versa.

This came up because a user noticed that -XMP-exif:GPSMeasureMode is empty despite -GPS:GPSMeasureMode containing data and GPS2XMP.args being used.
He then tried to copy the native GPS value into the XMP value, which then caused the PrintConv problem during writing back the metadata. Wiping out the change.

I assume this is also the reason for GPS2XMP not importing the GPS values into XMP.