[OSM-dev] Mapnik : any way of controlling the frequency text is written on polylines?
artem at pavlenko.uklinux.net
Tue Jan 23 20:53:18 GMT 2007
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 ?
On Tuesday 23 January 2007 19:19, Nick Whitelegg wrote:
> >> I'm trying to get heights to appear on contours, e.g. at:
> >> http://nick.dev.openstreetmap.org/mapnik2/100455105.png
> >> However, the height labelling only appears infrequently. At a guess it
> >> only places text along a sufficiently straight section of line. The XML
> > code is:
> >> <Rule>
> >> <TextSymbolizer name="height" face_name="Bitstream Vera Sans Roman"
> >> size="8" fill="#fb9b67" halo_radius="0" placement="line"/>
> >> </Rule>
> >> Is there a parameter I can set to increase the frequency of text
> >> along the contour lines?
> >There used be such parameter, but I'm not sure it's stil there:). I'll
> have a
> >look. Could I have some small subset of your contours for testing??
> >-- Artem
> >> Thanks,
> >> Nick
> Hello Artem,
> The shapefiles used to generate the contours are in:
> The names match the generated PNG files in
> nick.dev.openstreetmap.org/mapnik2/, e.g. the above image would be from
More information about the dev