ExifTool Forum

ExifTool => ExifTool GUI => Topic started by: fabri22 on March 22, 2019, 04:26:59 AM

Title: Geotagging
Post by: fabri22 on March 22, 2019, 04:26:59 AM
Total newbie, so don't be rude  :)

Currently, to add GPS data to my photos i use 2 exiftool direct commands:

1 - i call a file GPS.txt containing these lines
Code: [Select]
-n
-EXIF:GPSVersionID=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef=0
-EXIF:GPSAltitude=18.6 m
-EXIF:GPSTimeStamp=10:12:36.024
-EXIF:GPSStatus=V
-EXIF:GPSMeasureMode=3
-EXIF:GPSSpeedRef=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-EXIF:GPSDateStamp=2019:04:30
-EXIF:GPSDifferential=0

2- then, to make GPS time and date equal to the photo, i run this exiftool direct command:

Code: [Select]
"-gpstimestamp<datetimeoriginal" "-gpsdatestamp<datetimeoriginal"

How to merge the #2 command to the GPS.txt ???

Thanks in advance
Title: Re: Geotagging
Post by: Phil Harvey on March 22, 2019, 07:00:52 AM
Add these lines to GPS.txt

Code: [Select]
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal

But note that you are already setting GPSTimeStamp in GPS.txt, so you should either remove this or make sure it comes before these two lines.

- Phil
Title: Re: Geotagging
Post by: fabri22 on March 22, 2019, 07:07:30 AM
Thanks for reply Phil ... but i get these warnings:
Code: [Select]
Warning: Too many values specified (3 required) for GPS:GPSTimeStamp - ./DSC00868.JPG
Warning: No writable tags set from ./DSC00868.JPG


when calling the new GPS.txt
Code: [Select]
-n
-EXIF:GPSVersionID=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef=0
-EXIF:GPSAltitude=35.6 m
-EXIF:GPSTimeStamp=10:12:36.024
-EXIF:GPSStatus=V
-EXIF:GPSMeasureMode=3
-EXIF:GPSSpeedRef=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-EXIF:GPSDateStamp=2019:04:30
-EXIF:GPSDifferential=0
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal
Title: Re: Geotagging
Post by: Phil Harvey on March 22, 2019, 07:17:06 AM
Oh.  I didn't notice the -n.  Try this then:

Code: [Select]
-EXIF:GPSVersionID#=2 3 0 0
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLatitude=41.9019817
-EXIF:GPSLongitudeRef=E
-EXIF:GPSLongitude=12.4553653
-EXIF:GPSAltitudeRef#=0
-EXIF:GPSAltitude=35.6 m
-EXIF:GPSStatus#=V
-EXIF:GPSMeasureMode#=3
-EXIF:GPSSpeedRef#=K
-EXIF:GPSSpeed=1.3
-EXIF:GPSTrackRef#=T
-EXIF:GPSTrack=149.79
-EXIF:GPSMapDatum=WGS-84
-gpstimestamp<datetimeoriginal
-gpsdatestamp<datetimeoriginal

- Phil
Title: Re: Geotagging
Post by: fabri22 on March 22, 2019, 07:21:39 AM
Works like a charm  :)
 Thank you