ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Mac2 on December 13, 2021, 04:35:02 AM

Title: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: Mac2 on December 13, 2021, 04:35:02 AM
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.

Title: Re: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: Phil Harvey on December 13, 2021, 07:11:21 AM
Interesting.  See the XMP-exif tags documentation (https://exiftool.org/TagNames/XMP.html#exif) for the reason.  I will have to fix this so the EXIF and XMP conversions are the same.

- Phil
Title: Re: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: Mac2 on December 13, 2021, 08:01:56 AM
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... :-[
Title: Re: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: Phil Harvey on December 13, 2021, 08:09:05 AM
Look at the documentation I referenced
Title: Re: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: StarGeek on December 13, 2021, 10:33:52 AM
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 (https://exiftool.org/TagNames/).
Title: Re: XMP-exif:GPSMeasureMode (not in PrintConv)
Post by: Mac2 on December 13, 2021, 12:51:34 PM
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.