Cannot generate GPS log file with gpsdatetime

Started by et2511299562, August 04, 2013, 02:04:39 AM

Previous topic - Next topic

et2511299562

I'm trying create a GPS log file from photos taken with my iPhone, but I am getting errors about gpsdatetime.


% exiftool -p [path_to]/gpx.fmt -d %Y-%m-%dT%H:%M:%SZ [dir] > out.gpx

Warning: [Minor] Tag 'gpsdatetime' not defined - [dir]/IMG_1234.JPG


The resulting log file only contains latitute, longitude, and elevation data and is not usable to geotag other photos.


% exiftool -geotag out.gpx IMG_9876.CR2

Argument "-Geotime<DateTimeOriginal" is assumed
Loaded 0 points from GPS track log file 'out.gpx'
Warning: No track points found in GPS file 'out.gpx' in File:Geotag (ValueConvInv)

Phil Harvey

There is a recent thread discussing exactly this.

To summarize for your specific problem:

1) Your output GPX file does not contain timestamps because your image doesn't contain a GPS date and/or time.

2) A track log with no time stamps can not be used to geotag images with ExifTool.

One option, not mentioned in the other thread, is to modify gpx.fmt to use some other date/time tag instead of GPSDateTime.  However, you will have to be careful about time zones in this case because GPSDateTime is in UTC.

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