Geotagging

Started by Pierre, September 30, 2013, 03:31:29 PM

Previous topic - Next topic

Pierre

I have a process to geotag jpgs that includes making a GPX file and using Exiftool.  It works for some files (700/1300) but for some reason I can't get them all to run.  I was wondering if someone could identify the problem?
I've included reduced size versions of a couple image files and the GPX file that has tags for all the files.
Files Img2013-06-06 140040.JPG, Img2013-06-06 140918.JPG - would Georeference and
Img2013_06_06_184320.JPG,Img2013-06-06 185446.JPG would not

Phil Harvey

#1
Hi Pierre,

From the application documentation:

            Geotag images from the specified GPS track log file.  Using the
            -geotag option is equivalent to writing a value to the "Geotag"
            tag.  After the -geotag option has been specified, the value of
            the "Geotime" tag is written to define a date/time for the
            position interpolation.  If "Geotime" is not specified, the value
            is copied from "DateTimeOriginal".  For example, the following two
            commands are equivalent:

                exiftool -geotag track.log image.jpg
                exiftool -geotag "-Geotime<DateTimeOriginal" image.jpg


For the images you uploaded:

> exiftool -datetimeoriginal .
======== ./Img2013_06_06_140040.JPG
======== ./Img2013_06_06_140918.JPG
======== ./Img2013_06_06_184320.JPG
======== ./Img2013_06_06_185446.JPG
    1 directories scanned
    4 image files read


Hence the files were not geotagged.  Without a date/time reference, ExifTool has no way to know the point of time in the track when the picture was taken.

- Phil

Edit:  This is also troubleshooting tip number 2 on the "Geotagging with ExifTool" page.
...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 ($).

Pierre

Phil,
Sorry about that, I sent you the reduced size versions of the files and it looks like the exif data was not preserved.  Given the file sizes here is a link to an FTP with the original files and copies of a couple of files that updated correctly.  I've also included screen grab of the check to see if the metadata is contained.
So again, Img2013_06_06_184320.JPG,Img2013-06-06 185446.JPG  would not geotag while the others process as expected using the gpx file provided
ftp://starfish.mar.dfo-mpo.gc.ca/pub/mesd/exiftesting

Phil Harvey

Hi Pierre,

I got the updated files, thanks.

Is this what you get when you try to geotag these files?:

> exiftool -geotag VGStillLoc.gpx .
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 140918.JPG
Warning: No writable tags set from ./Img2013-06-06 140918.JPG
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 184320.JPG
Warning: No writable tags set from ./Img2013-06-06 184320.JPG
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 185446.JPG
Warning: No writable tags set from ./Img2013-06-06 185446.JPG
    1 directories scanned
    1 image files updated
    3 image files unchanged


If so, I would have hoped that the warning messages were self-explanitory.

- Phil

Edit: This is troubleshooting point number 3 on the "Geotagging with ExifTool" page.
...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 ($).

Pierre

Phil,
Yes but Img2013-06-06 140918.JPG does geotag

Phil Harvey

I edited my post above to include a link to troubleshooting point number 3.  Maybe reading this will help.

- 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 ($).

Pierre

Phil,
Got it...I had to specify the Geosync even though the GPX notes time in Zulu
<wpt lat="45.360558" lon="-64.430452">
      <time>2013-06-09T10:37:28Z</time>
      <name>Img2013_06_09_103728.JPG</name>
Again...Great tool...and Thanks!
Pierre