[OSM-dev] Mapnik : any way of controlling the frequency text is written on polylines?

Artem Pavlenko artem at pavlenko.uklinux.net
Fri Jan 26 20:22:01 GMT 2007

Hi Nick,

There is no way to explicitly specify angle for text placement at the moment. 
It would be nice feature to add and I'm planning to implement this for 0.5.0.

What you could try doing is to create line segments (long enough!) and 
use "lineplacement" for text labels. It should give you good results.

BTW, there is http://trac.mapnik.org -  feel free to add new feature request!

On Friday 26 January 2007 19:52, Nick Whitelegg wrote:
> On Tuesday 23 Jan 2007 20:53, Artem Pavlenko wrote:
> > NIck,
> >
> > Looks like your contours made from disjoined segments. I think connecting
> > them into longer polylines would improve text labels.  At the moment
> > there is no attempts to render text if segment is not long enough.
> >
> > Also, you could try pre-calculating label positions and store them in
> > separate shapefile? You can even get then lined up nicely ??
> >
> > Having said all that, I haven't tried to render labels on your contours
> > yet
> >
> > :) Where do I get  your styles.xml ?
> Hello Artem,
> I think putting the labels in a separate shapefile might be the easiest
> solution. How do I control the angle at which text is placed?
> Thanks,
> Nick

More information about the dev mailing list