camera set to utc, geotime converts to utc

Started by Archive, May 12, 2010, 08:54:35 AM

Previous topic - Next topic

Archive

[Originally posted by ka5j on 2009-05-12 20:49:57-07]

I am testing geotagging with exiftool, Windows command line v7.75. I have 3 photos in D:\1 taken today 5/12/2009 at 11:59 CDT, 16:59 UTC. The times in the gps track file d:\1\track.gpx and  DateTimeOriginal in the photos match.

When I run exiftool with these options:

Code:
exiftool -geotag=D:\1\track.gpx d:\1 -v2

it reports:

Code:
D:\Program Files\exiftool>exiftool -geotag=D:\1\track.gpx d:\1 -v2
Code:
Argument "-Geotime<DateTimeOriginal" is assumed
Loaded 1535 points from GPS track log file 'D:\1\track.gpx'

  GPS track start: 2008:10:19 17:58:12 UTC

  GPS track end:   2009:05:12 17:13:00 UTC

Writing File:Geotag

======== d:/1/DSC_0016.jpg

Setting new values from d:/1/DSC_0016.jpg

  Geotime value:   2009:05:12 21:59:53 UTC

Warning: Time is too far beyond track in File:Geotime (ValueConvInv) - d:/1/DSC_
0016.jpg

Nothing changed in d:/1/DSC_0016.jpg

When I add an option I found on the faq's that I thought would subtract 5 hours from the Geotime value:

Code:
exiftool -geotag D:\1\track.gpx '-geotime<${createdate}-05:00' d:\1 -v2
the result was:

Code:
D:\Program Files\exiftool>exiftool -geotag=D:\1\track.gpx '-geotime -06:00' d:\1 -v2 0<${createdate}

The system cannot find the file specified.

I am not sure what I am doing wrong, am I entering the option in the correct format, or is there another command that would work better?

Dave

Archive

[Originally posted by exiftool on 2009-05-12 23:13:18-07]

Hi Dave,

This is a bit confusing, but it seems your camera is set to UTC, correct?

If so, then you need to specify either "+00:00" or "Z" for the timezone
when you set Geotime:

Code:
exiftool -geotag D:\1\track.gpx "-geotime<${Createdate}Z" D:\1 -v2

Just a few notes:

1. On Windows, you must use double quotes, not single quotes.

2. I'm not sure what you're doing with "0<${createdate}".  Perhaps this was
a typo.  At any rate, I don't think this is accomplishing what you wanted.

3. "Geotime" is a tag value that must be set, not a command-line option,
so it must either be assigned (with an "=" sign), or copied from the value
of another tag (with a "<").

4. If you don't specify the timezone for CreateDate ("Z"), then exiftool will
assume the local timezone, and adjust the time accordingly to convert it
to UTC.  In your case, your timezone is -05:00, so by default exiftool will
add 5 hours to the CreateDate to convert to UTC (the same as if you had
specified "-geotime<${createdate}-05:00").  To avoid this, we specify
the proper timezone for CreateDate (which looks like it is UTC to me).

I hope this make sense.

- Phil

Archive

[Originally posted by ka5j on 2009-05-13 00:39:18-07]

Phil, thank you, that resolved the problem. I think the single quotes must have been adding in the odd characters but obviously I didn't know what I was doing. I substituted your command and it worked great. Thank you.