ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: paperdigits on August 08, 2016, 05:51:38 PM

Title: Adding geotagging information directly to the XMP sidecar file?
Post by: paperdigits on August 08, 2016, 05:51:38 PM
My phone spits out GPX formatted GPS files and I'd like to add that information to the XMP sidecar files.

I've been trying to coerce exiftool to do such a thing, but I have not been successful.

The closest I think I've come is the following command:

exiftool -xmp:geotag=track.log *.nef -o %d%f.xmp

The -o doesn't seem to be compatible with using the geotag feature.

Any pointers would be helpful or if this just isn't possible without a script, I'll start working on that.
Title: Re: Adding geotagging information directly to the XMP sidecar file?
Post by: Phil Harvey on August 08, 2016, 07:09:00 PM
I would have thought that should work.  I don't have time to try it right now, but I will when I get a chance.

- Phil
Title: Re: Adding geotagging information directly to the XMP sidecar file?
Post by: paperdigits on August 08, 2016, 08:34:31 PM
Thank you, Phil.

Interestingly enough, this does work on my Debian 8 (Jessie) computer, but was not working on my Fedora 24 laptop (which I've since reinstalled). Not sure what the problem is/was.

Is this the expected output when using the -xmp:geotag command? I thought it'd be using the XMP vocabulary, but instead gives the exif:

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 9.74'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

<rdf:Description rdf:about=''
  xmlns:exif='http://ns.adobe.com/exif/1.0/'>
  <exif:GPSAltitude>154/5</exif:GPSAltitude>
  <exif:GPSAltitudeRef>1</exif:GPSAltitudeRef>
  <exif:GPSLatitude>33,41.800180N</exif:GPSLatitude>
  <exif:GPSLongitude>118,2.695291W</exif:GPSLongitude>
  <exif:GPSTimeStamp>2016-06-24T03:08:25</exif:GPSTimeStamp>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>
Title: Re: Adding geotagging information directly to the XMP sidecar file?
Post by: Phil Harvey on August 09, 2016, 08:00:36 AM
That is correct.  It is using the standard "exif" namespace of the XMP specification.

All I can think of is to check the version of exiftool running on your laptop.  If it is the same, then all signs point to operator error. :P

- Phil
Title: Re: Adding geotagging information directly to the XMP sidecar file?
Post by: paperdigits on August 11, 2016, 10:14:32 PM
I'm perfectly willing to attribute it to operator error and I've since moved to Fedora 24, where I cannot replicate the error.

Thank you for your time!