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

Nick Whitelegg Nick.Whitelegg at solent.ac.uk
Tue Jan 23 19:19:10 GMT 2007

>> 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 mailing list