how to tag photos from google locations

Started by pbranly, June 20, 2022, 05:45:27 AM

Previous topic - Next topic

Phil Harvey

With this command, I don't see the purpose of the DateFormat option.

Oh, I see.   You want this option for other commands.  Right.

Yes, disabling the formatting with "#" is the correct thing to do.

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

Viktor Nemeth

Hi Phil, me again, yet again.

I still think I'm missing a key bit of the puzzle ;)

My config file is:
# exiftool config file
%Image::ExifTool::UserDefined::Options = (
    CoordFormat => '%+.6f', 
    DateFormat => '%Y-%m-%d %H:%M:%S'
); 
#end

But the xmp-dump doesn't respect the CoordFormat.
<?xpacket begin='�' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 12.49'>
<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>43315/3087</exif:GPSAltitude>
  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
  <exif:GPSLatitude>41,53.23922526N</exif:GPSLatitude>
  <exif:GPSLongitude>12,28.59291474E</exif:GPSLongitude>
 </rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>

Lat/Long are in the "wrong" format - also, any method to return a decimal for altitude?
In the original gpx file the values were in the format: (ignore the precise values, I just copypasted the first element in the gpx file but all the same format)

      <trkpt lat="41.887407" lon="12.476531">
        <ele>14.158488</ele>
        <time>2022-09-15T15:53:43+02:00</time>
      </trkpt>

Phil Harvey

Quote from: nemethv on November 02, 2022, 11:42:07 AMLat/Long are in the "wrong" format.

The CoordFormat option applies to the ExifTool output.  The format for storing coordinates in XMP is dictated by the specification.

The same goes for the altitude, which is a rational value according to the specification.

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