[OSM-talk] duplicate, clashing rendering of names
Abigail Brady
morwen at evilmagic.org
Mon Dec 10 17:16:43 GMT 2007
On Dec 10, 2007 3:21 PM, Cameron Patrick <cameron at patrick.wattle.id.au>
wrote:
> Chris Hill wrote:
>
> > This is one of the improvements that relations promise to bring. The
> > idea is that you make both carriageways part of a relation with
> > type=dual_carriageway and the renderer then only labels it once. As
> > yet it doesn't seem to work, but I guess it will in the future..
>
> It's easy enough to recognise dual carriageways programmatically - I've
> written OSM rendering code that does it. (It's not published anywhere
> and needs to be updated for the 0.5 API. If anyone is interested, let
> me know - last time I offered people seemed to say "we already have two
> renderers, please don't confuse things furhter" which is fair enough.)
>
> I've also been meaning to experiment with rendering algorithms that
> break up long ways and merge short adjacent ones with the same name.
> The only tricky bit with that one is maintaining consistency at tile
> boundaries.
>
This stuff would be good as a pre-processor to osmarender, I reckon. While
you are there, you might also ponder the problem of drawing dual
carriageways at lower zoom levels where the lines representing the
carriageways overlap (it really ought to be drawing a little line in the
casing colour representing the central reservation, which requires
synthesising an intermediate line based on the left and right ones).
--
Abi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20071210/fa713e16/attachment.html>
More information about the talk
mailing list