ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: toc-rox on September 13, 2012, 10:41:41 AM

Title: Formatting of Altitude data
Post by: toc-rox on September 13, 2012, 10:41:41 AM
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
Title: Re: Formatting of Altitude data
Post by: Phil Harvey on September 13, 2012, 11:12:27 AM
Hi Klaus,

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

- Phil
Title: Re: Formatting of Altitude data
Post by: toc-rox on September 13, 2012, 01:37:01 PM
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
Title: Re: Formatting of Altitude data
Post by: Phil Harvey on September 13, 2012, 06:14:45 PM
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
Title: Re: Formatting of Altitude data
Post by: toc-rox on September 14, 2012, 04:19:26 AM
OK Phil - then I have to look for a workaround.

Thanks - Klaus