How to batch reverse GPS Latitude from North to South?

Started by Owen, May 31, 2019, 11:00:38 PM

Previous topic - Next topic

Owen

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
(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

Mario

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:



The value to set the tag to is:

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

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Owen

Thanks for the fix.

It worked without error and very quick.

Much appreciated.