This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Altitude attribute

0

Hi,

Does the altitude attribute represents a relative altitude?

If I have a tunnel below a railroad, should I set altitude to -1?

Thanks!

asked 08 Apr '16, 14:25

GranBarba's gravatar image

GranBarba
16113
accept rate: 0%

closed 12 Apr '16, 09:17

Lightsider's gravatar image

Lightsider
1.5k52129

What altitude attribute are you talking about exactly? Can you give us the name of the tag key?

(08 Apr '16, 15:06) scai ♦

The name in spanish is "altitud"

(08 Apr '16, 19:11) GranBarba

One Answer:

4

The tunnel under the railroad should probably be marked as layer=-1. Sometimes it will be a different value for the layer, but the usual tunnel will be -1.

Altitude is usually stored in the ele key (short for elevation). It should probably only be used on a limited set of objects where the elevation is well determined (things like mountain peaks). In general combining OSM data with separate elevation data is a better approach than adding elevations of various accuracies and sources to objects.

answered 08 Apr '16, 15:07

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 08 Apr '16, 15:16

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249

Thanks, Vincent and Max!

(08 Apr '16, 19:09) GranBarba

Source code available on GitHub .