photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Owen on May 31, 2019, 11:00:38 PM

Title: How to batch reverse GPS Latitude from North to South?
Post by: Owen on May 31, 2019, 11:00:38 PM
Hi everyone,

IMatch 2019.5.2 (64 bit)
Exiftool 11.42

I have also posted a bug report relating to this at https://www.photools.com/community/index.php?topic=9073.0 (https://www.photools.com/community/index.php?topic=9073.0)
(NOTE THAT THIS HAS NOT YET PROVEN TO BE A BUG IN EITHER IMATCH OR EXIFTOOL)

The detail of how I came to be here is in the bug report post but in short I now find myself with approximately 800 files that have the sign of the GPS Latitude co-ordinate reversed from South to North.  Longitude is not reversed from East to West

For example GPS Latitude changed from 22 deg 17' 24.38" S  to  22 deg 17' 24.38" N

It is a simple fix to manually change the sign for each file from 'N' to 'S' in the metadata panel but I would prefer not to have to edit 800 files individually.

As there are many variations in the Latitude/Longitude between files that I do not want to lose, I cannot just select all files or groups of files and update manually in the metadata panel.

Any advice is welcome.
Thanks in advance for the help.

cheers,
Owen
Title: Re: How to batch reverse GPS Latitude from North to South?
Post by: Mario on June 01, 2019, 09:05:03 AM
This can be achieved using the Metadata Mechanic App, after a small update to the app.
I did not anticipate this specific task when designing it, but it can be added easily.

1. Replace the file "C:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\md-mechanic\src\app.js" on your system with the file attached below (after unzipping app.zip).
2. Select a TEST FILE in a File Window and run the Metadata Mechanic app from the App Manager.
3. Make these settings:

(https://www.photools.com/community/index.php?action=dlattach;topic=9076.0;attach=21695;image)

The value to set the tag to is:

-{File.MD.XMP::exif\GPSLatitude\GPSLatitude|value:raw}

Title: Re: How to batch reverse GPS Latitude from North to South?
Post by: Owen on June 01, 2019, 02:09:49 PM
Thanks for the fix.

It worked without error and very quick.

Much appreciated.