UTM coordinates

Started by Bosun, March 06, 2016, 04:15:11 PM

Previous topic - Next topic

Phil Harvey

This config file is included in the full distribution.  Here is the current version (no changes since 2016/03/09).

- 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 ($).

dericson

Quote from: Phil Harvey on June 11, 2025, 04:50:23 PMThis config file is included in the full distribution.  Here is the current version (no changes since 2016/03/09).

- Phil

Do I need to use a utm flag or anything?  I followed the directions as you described, but I am not seeing UTM tags in the response

Yep I was missing "-utm*"

StarGeek

What is the exact command you used and the exact output?

Here's an example of what I get using the config
C:\>exiftool -config gps2utm.config -G1 -a -s -c "%.6f" -GPS* -UTM* y:\!temp\Test4.jpg
[GPS]           GPSVersionID                    : 2.3.0.0
[GPS]           GPSLatitudeRef                  : North
[GPS]           GPSLatitude                     : 40.689200
[GPS]           GPSLongitudeRef                 : West
[GPS]           GPSLongitude                    : 74.044500
[Composite]     GPSLatitude                     : 40.689200 N
[Composite]     GPSLongitude                    : 74.044500 W
[Composite]     GPSPosition                     : 40.689200 N, 74.044500 W
[Composite]     UTMCoordinates                  : 18T 580735.871m E 4504695.165m N
[Composite]     UTMEasting                      : 580735.870703451
[Composite]     UTMNorthing                     : 4504695.16533812
[Composite]     UTMZone                         : 18T
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

You shouldn't have to specify "-utm*" (unless you have specified other tags to extracted).  When extracting all tags, the UTM tags should be generated as long as the config file is used an the GPS coordinates exist.

- 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 ($).

StarGeek

Quote from: Phil Harvey on June 11, 2025, 05:31:14 PMYou shouldn't have to specify "-utm*" (unless you have specified other tags to extracted).  When extracting all tags, the UTM tags should be generated as long as the config file is used an the GPS coordinates exist.

I only wanted to show the GPS and UTM tags to show that the config file worked. All other tags where unnecessary for the example.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

@StarGeek:  Understood.  My comment was in response to dericson's last post, and was actually composed before I saw yours.

- 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 ($).

StarGeek

Quote from: Phil Harvey on June 11, 2025, 07:25:45 PMand was actually composed before I saw yours.

As is tradition...
:D
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

...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 ($).

dericson

I got it up and running.  In the end all I had to do was restart my terminal.  Thanks!!