ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dremon on September 14, 2014, 10:36:10 AM

Title: Incorrect GPS data - how to fix?
Post by: dremon on September 14, 2014, 10:36:10 AM
Hello,

I've been using ExifTools for quite some time already (it's really great software with a great support from Phil!!!) and I was usually able to do what I wanted using docs and faqs supplied.
I have however stumbled upon some jpegs that I'm unable to fix myself. I am trying to set both GPSLongitude and GPSLongitudeRef to W. I have a number of such files and although it's easy to correct this manually (i.e. resize the file in FastStone), I am looking for an automated solution to the issue.

The first file is ok but the 2nd one has 'W' in GPSLongitude and 'E' in GPSLongitudeRef. ExifTool seems unable to correct this:

D:\Pictures\Geo>c:\tools\exiftool -GPSLongitude* 2014-07-29_11-3*.jpg
======== 2014-07-29_11-36-39.jpg
GPS Longitude                   : 64 deg 34' 54.13" W
GPS Longitude Ref               : West
======== 2014-07-29_11-38-10.jpg
GPS Longitude                   : 64 deg 34' 54.13" W
GPS Longitude Ref               : East
    2 image files read

D:\Pictures\Geo>c:\tools\exiftool -GPSLongitudeRef=W 2014-07-29_11-3*.jpg
    2 image files updated

D:\Pictures\Geo>c:\tools\exiftool -GPSLongitude* 2014-07-29_11-3*.jpg
======== 2014-07-29_11-36-39.jpg
GPS Longitude                   : 64 deg 34' 54.13" W
GPS Longitude Ref               : West
======== 2014-07-29_11-38-10.jpg
GPS Longitude                   : 64 deg 34' 54.13" W
GPS Longitude Ref               : East
    2 image files read


How can I correct it?


I cannot upload the file due to security limitations (upload probably not allowed for new users).
Title: Re: Incorrect GPS data - how to fix?
Post by: Phil Harvey on September 14, 2014, 11:09:06 AM
I'm thinking that this is a variation of FAQ number 3 (https://exiftool.org/faq.html#Q3).  To understand the full situation, try extracting with -a -G1 "-gpslongitude*"

- Phil
Title: Re: Incorrect GPS data - how to fix?
Post by: dremon on September 14, 2014, 01:31:54 PM
ahh, I saw this part of the FAQ but stopped reading halfway as I thought this does not apply to my case.

Once I displayed all the tags, the solution became obvious  ;D

D:\Pictures\Geo>c:\tools\exiftool -a -G1 "-GPSLongitude*" 2014-07-29_11-3*.jpg
======== 2014-07-29_11-38-10.jpg
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 64 deg 34' 54.13"
[XMP-exif]      GPS Longitude                   : 64 deg 34' 54.13" E
[Composite]     GPS Longitude                   : 64 deg 34' 54.13" W
[Composite]     GPS Longitude Ref               : East

D:\Pictures\Geo>c:\tools\exiftool "-xmp:GPSLongitude<GPSLongitude" 2014-07-29_11-3*.jpg

D:\Pictures\Geo>c:\tools\exiftool -a -G1 "-GPSLongitude*" 2014-07-29_11-3*.jpg
======== 2014-07-29_11-38-10.jpg
[GPS]           GPS Longitude Ref               : West
[GPS]           GPS Longitude                   : 64 deg 34' 54.13"
[XMP-exif]      GPS Longitude                   : 64 deg 34' 54.13" W
[Composite]     GPS Longitude                   : 64 deg 34' 54.13" W
[Composite]     GPS Longitude Ref               : West


Thanks a lot for your help!!