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.
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
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'?>
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
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!