[OSM-dev] Osmarender abutters

80n 80n80n at gmail.com
Tue Feb 27 11:37:47 GMT 2007


There is a similar issue with captions (place names, etc) which should
always be drawn on top of everything else.  Currently bridges
(layer=1) get rendered on top of names (layer=0).  This is especially
unfortunate for railway station names because there are almost always
bridges nearby.

I'm thinking that the scope of layers should be restricted to the
"group" of features that they belong to.  So layer=1 for a road would
be rendered before place names, and layer=-1 for underpasses would be
rendered after landuse and abutters.

Jochen has alsready introduced a form of grouping that corresponds to
svg layers.  This is roughly the right granularity (but for a
different purpose) and perhaps is a seed that can be used to germinate
this idea.

80n

On 2/27/07, Jochen Topf <jochen at remote.org> wrote:
> On Tue, Feb 27, 2007 at 10:32:51AM +0100, Kristian Thy wrote:
> > Is it possible to draw abutters and landuse as the very lowest layer? As
> > far as I can tell from my (admittedly somewhat limited) cartographic
> > experience, there is never something you want rendered *under* landuse
> > (abutters being a special linear case of landuse in this context). As an
> > example of why the current rendering is flawed, look at
> > http://openstreetmap.org/index.html?lat=55.740957&lon=12.560120&zoom=12
> > where the roads' abutters are drawn on top of the tracks going below the
> > road.
>
> Thats a problem with the layering. Generally abutters and landuse are
> drawn first, but in this case there is a bridge which has a higher layer
> and by definition everything in a higher layer is drawn later.
>
> This is a good case to show that having abutters tagged on the road
> instead of a separate landuse is problematic. But there are so many
> problems surrounding layering etc. that my head hurts every time I try
> to think about it. :-)
>
> I don't have a good solution for all this.
>
> Workaround: Tag bridges as unclassified instead of residential.
>
> Jochen
> --
> Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/  +49-721-388298
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>




More information about the dev mailing list