Hi,

I've been on this problem, and my TextSymbolizer was so (In python):

text_A1 = TextSymbolizer( 'fullname', 'DejaVu Sans Book', 12, Color( 0, 0, 0 ) )
text_A1.label_spacing = 190
text_A1.label_placement = label_placement.LINE_PLACEMENT
text_A1.halo_radius = 1
text_A1.halo_fill = Color( 255, 255, 255)
text_A1.allow_overlap = 0
text_A1.avoid_edges = 0
text_A1.label_position_tolerance = 1
text_A1.max_char_angle_delta = 35

I think the trick is at label_position_tolerance...

and look at this link (http://mike.teczno.com/notes/mapnik.html), section Continuity. That is what I do, and remember, larger texts, larger gutter.

This way worked for me...

BRUNO CAPONI



I think that label is off tile.
I have the same problem when labels or shields are near the edge of tile
generated by generate_tiles.py

Peter


riteshambastha írta:
> Dear List, 
>
> I have used TextSymbolizer for my line data as :
>
> <TextSymbolizer name="roadname" face_name="DejaVu Sans Mono Bold" size="11"
> fill="#303030" halo_radius="0" placement="line" allow_overlap = "false"
> avoid_edges = "true" spacing = "150" min_distance = "150"/>
>
> I found some discrepancy in the way the line data got labeled on the map. In
> few cases it worked fine, but in few it randomly cuts the label text. This
> case is attached.
>
> http://www.nabble.com/file/p21495786/roaderror.png
>
> Please help me if you have any clue.
> Thanks,
> Ritesh Ambastha
>

_______________________________________________
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

Reply via email to