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- [email protected]
                  415.558.1610



_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to