Can I set GPSDateStamp/GPSTimeStamp without Lat/Long?

Started by ljb, December 16, 2010, 01:18:56 AM

Previous topic - Next topic

ljb

Setting GPSDateStamp/GPSTimeStamp to something different that DateTimeOriginal seems to be the only way to indicate the UTC offset of local time when & where a picture was taken (I'd like to keep DateTimeOriginal in local time).

For all my pictures, I know the UTC offset of local time at the time and place a picture was taken, but I don't always know the geographic coordinates. So, I'd like to set GPSDateStamp/GPSTimeStamp for all pictures when I copy them off my camera, and set to geographic coordinates to those where I know them (via gpx files).

Using something like this:
  exiftool -geotag "*.gpx" '-geotime<${DateTimeOriginal}+11:00' Pictures
only modifies files that can be geographically located.

Is there a way to set GPSDateStamp/GPSTimeStamp no matter what?

Larry


Phil Harvey

Hi Larry,

XMP date/time values support a timezone, so another option is to write XMP-exif:DateTimeOriginal if you want to preserve the time zone.

But to answer your question, you can set GPSDateStamp/GPSTimeStamp for all pictures like this:

exiftool '-gpstimestamp<${DateTimeOriginal}+11:00' '-gpsdatestamp<${DateTimeOriginal}+11:00' Pictures

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