<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 27/06/15 10:40, Ture Pålsson wrote:<br>
</div>
<blockquote
cite="mid:3E1AFEAD-4C25-4E75-9B01-95BE0AAC70DB@lysator.liu.se"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I recently taught my rendering hack about the ’layer’ tag, and
immediately encountered a set of new problems. For example,
consider this ditch: <a moz-do-not-send="true"
href="http://www.openstreetmap.org/way/243331898" class="">http://www.openstreetmap.org/way/243331898</a> .
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.
<div class=""><br class="">
</div>
<div class="">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?</div>
<br>
</blockquote>
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.<br>
<br>
Michael<br>
</body>
</html>