Hi Ritesh,
Using the mapnik python bindings, POINT_PLACEMENT is default. So, to
enable labels that follow the curve of a linear feature in mapnik,
simply set the placement property to "line". In mapnik xml you would
do placement="line" and for python you would do:
t = TextSymbolizer('FIELD_NAME', 'DejaVu Sans Book', 10, Color('black'))
t.halo_fill = Color('white')
t.halo_radius = 1
t.label_placement = label_placement.LINE_PLACEMENT
Note: that is from the example I've just added here:
http://trac.mapnik.org/wiki/TextSymbolizer
Dane
On Sep 26, 2008, at 11:55 PM, riteshambastha wrote:
Hello,
I am trying to label roads using Mapnik Python. I have used mapserver
before, and using 'ANGLE FOLLOW' in the layer definition used to
label roads
with perfect curves.
I am searching for the similar option in mapnik.
Any kind of help will be highly appreciated.
Thanks,
Ritesh Ambastha
--
View this message in context:
http://www.nabble.com/Mapserver%27s-%22ANGLE-FOLLOW%22-Equivalent-for-Mapnik-Python-tp19700219p19700219.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users