photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: axel.hennig on November 14, 2014, 11:01:21 PM

Title: GPS data in different formats
Post by: axel.hennig on November 14, 2014, 11:01:21 PM
Hi,

I wanted to write my first little app. Just a link of the form

https://www.google.de/maps/@LATITUDE,LONGITUDE,11z

I started with the  "Copy Data App" and tried the variable {File.MD.XMP::exif\GPSLatitude\GPSLatitude\0}, but the data is displayed as

47 deg 32' 19.64" N

and not as

47.5387891

as in the "Metadata -> Location" panel (XMP::exif\\GPSLatitude\GPSLatitude\0).

Can somebody explain why these variables (which are the same for me) are displayed in different ways?

Thanks a lot.

Axel
Title: Re: GPS data in different formats
Post by: JohnZeman on November 14, 2014, 11:22:45 PM
You can output the GPS in either format.  To force IMatch to display as digital change your tag to this:

{File.MD.XMP::exif\GPSLatitude\GPSLatitude\0|value:rawfrm; substr:0,8}

Note the 8 at the far end of the tag limits the digital output to 8 characters so you don't end up with a display such as 47.598083536345678

See the Variables > Formatting section in Help for more information.
Title: Re: GPS data in different formats
Post by: axel.hennig on November 15, 2014, 12:06:30 PM
Hi JohnZeman,

thanks a lot. This did the job.

Axel