Formatting of Altitude data

Started by toc-rox, September 13, 2012, 10:41:41 AM

Previous topic - Next topic

toc-rox

Hi,

first of all thanks for writting and publishing "ExifTool".

Feature request: Is it possible to format the altitude data in a more compact way?

Currently there is no formatting possible:
GPS Altitude     : 4 m Below Sea Level
GPS Altitude Ref : Below Sea Level

What I want to achieve is something like this (example):
GPS Altitude     : -4 m
or
GPS Altitude     : 4 m
or
GPS Altitude     : 12 ft

Regards Klaus

Phil Harvey

Hi Klaus,

GPSAltitude is always reported in metres.  using -gpsaltitude# will return a signed number for Composite:GPSAltitude.  Maybe this is sufficient.

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

toc-rox

Hi Phil,

thanks for the response and pointing to the "#" option ...

Currently I have this:
exiftool -gpsaltitude# -All -unknown -sort -dateFormat "%Y/%m/%d-%H:%M:%S" -coordFormat "%+.6f" "Wreck.jpg"

Which result to (example):
...
Focal Length In 35mm Format     : 140 mm
GPS Altitude                    : -3.2
GPS Altitude                    : 3.2 m Below Sea Level
GPS Altitude Ref                : Below Sea Level
GPS Date Stamp                  : 2012:08:14
GPS Date/Time                   : 2012/08/14-12:25:06
...


"GPS Altitude" is printed twice. Is it possible to prevent the second printout of "GPS Altitude: 3.2 m Below Sea Level" ?

Klaus

Phil Harvey

Hi Klaus,

Unfortunately you are requesting this information twice (with -gpsaltitude# and -all).  So that's what you get.  And there isn't any way to specify that you want to disable the print conversion for just one tag from -all.

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

toc-rox

OK Phil - then I have to look for a workaround.

Thanks - Klaus