[OSM-talk] Playing with Mapnik rendering
artem at mapnik.org
Mon Jul 30 17:51:25 BST 2007
On 30 Jul 2007, at 16:33, Cameron Patrick wrote:
> Artem Pavlenko wrote:
>> It works, but produces some artifacts. I think we can do better, but
>> thanks again for your patch.
>> http://artem.dev.openstreetmap.org/files/dy.png - you can see 'd'
>> from 'Road' overlapping 'o'.
> I've been thinking about this and it's trickier to hack up than I'd
> first thought - you'd have to build a new displaced line up front,
> there are many calculations that depend on this (e.g. you need to know
> the length of the line when calculating the "ideal" placements). I'm
> not game to do this right now since it'd be relatively intrusive. The
> other mapnik features I wanted to add look like they might be
> intrusive - would probably need to make several trial label placements
> and score them on "badness", a la TeX.
> I'm also not sure if there's an easy way for Mapnik to tell if/how
> lines or areas a point is overlapping, something that'd help to avoid
> the example I showed early where a road name overlaps a railway line.
> I've attached a patch that makes sure the names of vertical roads are
> rendered in a consistent direction (as mentioned by Robert Munro).
Thanks! I'll have a look. Perhaps, mapnik specific stuff should go to
> talk mailing list
> talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk