[OSM-talk] Layers and landuse

michael spreng talk at osm.datendelphin.net
Sat Jun 27 09:19:03 UTC 2015


On 27/06/15 10:40, Ture Pålsson wrote:
> I recently taught my rendering hack about the ’layer’ tag, and
> immediately encountered a set of new problems. For example, consider
> this ditch: http://www.openstreetmap.org/way/243331898 . It has
> layer=-1, probably to indicate that is passes under the road which it
> crosses. However, it is entirely covered by a landuse=farmland with no
> layer tag, which I take to mean an implicit layer=0. This means that
> my renderer now renders the farmland over the ditch, completely hiding
> the latter. Meanwhile, Mapnik obviously does what the tagger intended.
>
> Is this a tagging error, that I should fix by editing the data, or is
> it something that my renderer should be able to cope with?
>
This is not a tagging error. You should have different sets of layers
for different things. Usually areas are in a lower set of layers than
lines, meaning that all areas are rendered below lines. This makes
tunnels visible below a forest and similar things. And also your example
is covered by this.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20150627/9038e3b9/attachment.html>


More information about the talk mailing list