[Talk-us] Rendering of semicolon delimited values (WAS: Would Like To Clean Salt Lake City Street Names)

Nathan Edgars II neroute2 at gmail.com
Fri Aug 6 16:30:22 BST 2010


On Fri, Aug 6, 2010 at 11:17 AM, Craig Hinners <craig at hinnersection.com> wrote:
>> From: Kevin Atkinson <kevin at atkinson.dhs.org>
>> If a stretch of road has multiple numbered route, a semi-colon
>> should be used to separate them and I believe that the render _will_
>> recognize those.
>
> In my experience, Mapnik renders the semicolon as-is, rather than
> creating a shield/marker for each individual route number.
>
> But don't exceed a certain quantity of characters, because then it won't
> render a shield at all.
Do exceed that many characters if necessary or you won't be tagging correctly.

> The limit is different for the various values of
> the "highway" tag: it was 6 and 8 characters when I bitched about it
> some years back:
>
> http://trac.openstreetmap.org/ticket/937
>
> Anyway...yet another example of how this practice of cramming every last
> bit of highway network metadata into the value field of a "ref" tag has
> its limitations...

It's easy enough to fix in the renderer. If you put semicolons in the
name=* tag for a highway=motorway_junction Mapnik now replaces it with
a line break; something similar could be done for ref tags.



More information about the Talk-us mailing list