[talk-ph] railway being shadowed by trunk highway on mapnik
Eugene Alvin Villar
seav80 at gmail.com
Mon Jan 3 03:14:53 GMT 2011
The layer=* tag is used to indicate which objects are relatively above
or below each other and *not* to indicate which objects should be
rendered/drawn above or below each other. So if there are two objects
(e.g. a road and a railway) that are on the same level especially if
they cross each other on the same level (e.g., railway crossing), then
they should have the same number on the layer tag (which is by default
Using the layer tag to fix rendering issues is "tagging (wrongly) for
the renderer" and is frowned upon
correct way would be to fix the renderer.
On Sun, Jan 2, 2011 at 7:24 PM, <sorabsuperstar at web.de> wrote:
> Right. However Jim is actually also right that layers should not be used to fix rendering issues. But then again I suppose the problem that broadly rendered highways cover thin railways next to them (if they are on the same layer) is almost as old as OSM.... but yet nobody fixed it.
> Von: "Ed Garcia"
> Gesendet: Jan 2, 2011 9:59:28 AM
> An: soeren.rabenstein at email.de
> Betreff: Re: [talk-ph] railway being shadowed by trunk highway on mapnik
> Hi Soeren,
> Oh I see! Thanks so much. I've always wondered what the layer was really for. Now I know better. I guess this is what they use to indicate skyways?
> Thanks again.
> On Sun, Jan 2, 2011 at 2:24 PM, <[soeren.rabenstein at email.de]> wrote:
> Hi Ed
> >"Ed Garcia" <[eppgarcia at gmail.com]> wrote
>>Is there a way to make mapnik display the railway "over" the highway so it does not disappear?
> Sure there is. Add to the railroad a layer tag that has a higher value than the layer of the highway. Pathes with no layer tag are layer=0. So in your case make the railway layer=1, and tadaa: there is your railway.
> If your railway underpasses any bridges, you might need to make abjustments there, e.g. make the bridge layer=2.
> website administrator:
> - [www.waypoints.ph]
> - [reeflife.eppgarcia.com]
> PADI Divemaster #491048
> talk-ph mailing list
> talk-ph at openstreetmap.org
More information about the talk-ph