Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7710 closed enhancement (fixed)

Store altitude in photos.

Reported by: holgermappt Owned by: bastiK
Priority: normal Milestone:
Component: Plugin photo_geotagging Version: tested
Keywords: Cc:

Description

Please store the altitude in photos as it is done already for latitude, longitude, and date/time.

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by bastiK

I'm not sure how to interpret the EXIF specification: On the one hand the field is called "GPSAltitude", which suggest normal (ellipsoidal) WGS84 elevation. On the other hand they talk about sea level as reference, so this would be geoid height.

Btw., GPX has tags for both: <ele> and <geoidheight>.

comment:2 Changed 11 years ago by holgermappt

My Android phone sets the fields "GPS Altitude Ref" and "GPS Altitude" with such values (extracted with exiftool):

GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 157 m Above Sea Level

So I think they mean geoid height. At least that is what I would expect if I read "sea level". I could do some tests to find out what my phone really does, but there is no guarantee that the phone does the right thing.

GPX's <geoidheight> is something else (difference between geoid mean sea level and WGS-84 ellipsoid height 0.0). I never found out what the reference for GPX's <ele> is. My logger software allows me to convert to mean see level or to WGS84 and stores the result in <ele>. So I would just take the GPX <ele> and store it to the EXIF "GPS Altitude".

comment:3 Changed 11 years ago by bastiK

Resolution: fixed
Status: newclosed

Fair enough. In [o28398].

comment:4 Changed 11 years ago by holgermappt

Thanks for implementing this!

Note: It seems that the height of WGS-84 ellipsoid is meant to be stored in the EXIF GPS Altitude. I didn't find a real reference, but some clues. The Android standard camera app stores the WGS-84 elevation. The main reason is that the Android GPS API call delivers that elevation. An iPhone seems to do the same. The only value I found for the EXIF GPSMapDatum is "WGS-84". Someone recommended to set GPSMapDatum to WGS-84 to define what the reference is (http://stackoverflow.com/a/1720727).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain bastiK.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.