GPS - issues finding examples

Started by lorienrm, August 07, 2020, 08:14:01 PM

Previous topic - Next topic

lorienrm

Here's the problem.
Mapillary requires GPS Lattitude and GPS Longitude copied. Here's the quote, of course they typed it wrong, but close to understandable:
  GPS position—both GPS GPSLongitude and GPS GPSLongitude are required.
from help.mapillary.com/hc/en-us/articles/115001719089-EXIF-data

So, I went to copy and found out that I can't just create my own tag, I have to modify the config file.
  OK, so I added:
    # the Geotag feature writes these additional GPS tags if available:
    'Image::ExifTool::GPS::Main' => {
        # JM Custom 1.  GPS:GPSLattitude per Mapillary req
        0xd000 => {
            Name => 'GPSLattitude',
            Writable => 'rational64u',
        },
        # JM Custom 1.  GPS:GPSLongitude per Mapillary req
        0xd000 => {
            Name => 'GPSLongitude',
            Writable => 'rational64u',
        },
      }

So far, understood the instructions and doesn't seem hellish.

Now I want to copy the data and am baffled. When I read the data there's an option to see it different was using -n
  What do I have to write to the data? Nothing seems clear at all and I just need to understand how to see the data in the correct format to write the same thing into the new variables.

Anybody want to help me out? At this point I'm just command line single command at a timing it to get it right. Sorry that the examples just aren't helping, they really don't tell me in the slightest what to write if I wanted to write:
   -GPS:Lattitude="????????"
Even worse, it seems to go through some kind of translation matrix for me to see the value no matter what I do, so I can't see what is actually there - or can I. Nothing seems to match the view that I understand should be there, (xx)(xx)(xx)? Perhaps I just don't understand what should be there. Really not clear in the docs.

This is what I can read:
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Latitude                    : 53 deg 41' 8.74"
GPS Longitude Ref               : West
GPS Longitude                   : 113 deg 14' 1.96"

Or
GPS Version ID                  : 2 3 0 0
GPS Latitude Ref                : N
GPS Latitude                    : 53.6857611111111
GPS Longitude Ref               : W
GPS Longitude                   : 113.233877777778

Neither of which follows the format (nn) (nn) (nn)

Phil Harvey

First of all, you shouldn't be defining a custom tag when standard GPS tags exist for this.

Second, FAQ 14 explains the input formats when writing GPS coordinates.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).