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

How to get the Z Values for the given roads or streets?

0

How to get the Z Values for the given roads or streets?

asked 27 Jul '11, 10:09

N%20V%20Sumanth%20Vallabhaneni's gravatar image

N V Sumanth ...
1111
accept rate: 0%


One Answer:

2

We don't have Z values in general; the way things are drawn on the map depends mainly on the rendering software and its style sheet. I.e. when we have a road through a forest, neither will usually have a Z value and it is up to the rendering software to make the decision whether to draw the forest on top of the road, or the road on top of the forest.

We do have a layer tag (see Wiki) that can be used to give a relative Z value to objects e.g. where several roads meet - the default layer is 0, and if something is in a tunnel we will often use layer=-1 and if it is on a bridge, layer=1.

answered 27 Jul '11, 10:20

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .