[Mapnik-users] Control over Street Name Rendering

Michal Migurski mike at stamen.com
Sun Dec 6 08:32:50 CET 2009


On Dec 5, 2009, at 5:11 PM, Philip Stubbs wrote:

> Ok. Before I get too deep into sql I have thought of an alternative
> solution. If I use point placment, many more labels appear.
> Unfortunatly, it looks a mess. So, is it possible to ammend the layer
> definition for the text layer to only pick up roads within a certain
> length range?
>
> Looking at the postgis docs looks like there is an ST_Length function.
> Can I use this in my layer definition?


Yes, you can put an awful lot of complicated SQL into the "table"  
parameter. Here's one we used not long ago: http://dpaste.com/129815/

-mike.

----------------------------------------------------------------
michal migurski- mike at stamen.com
                  415.558.1610






More information about the Mapnik-users mailing list