Hi,
I am seeing that for labeling lines, Mapnik is not drawing labels for
placement="line" if the name to be labelled is "longer" than the line
segment. Just in case this is expected behavior, is there a way I can
override it? [For this highest zoom level, I would prefer not nice looking
names to no names].
Here is why I suspect this.
One line feature is not near any other feature. For that feature
a) If I reduce the font size, to reduce the total length of name it works.
b) Or if I remove the placement = line, it works.
c) I have tried allow_overlap min_distance, max_char_angle_Delta, but this
does not seem to help.
I am using Mapnik code that I had downloaded from svn on 2009-07-03.
I am giving below what does not work and what changes make the name appear.
Thanks,
Hemant
<!-- Does not work tried min_distance avoid_edges, allow_overlap, wrap_width
label_position_tolerance -->
<TextSymbolizer name="NAME" face_name="DejaVu Sans Bold"
size="12" fill="rgb(0,0,0)" max_char_angle_delta="90" placement="line"
wrap_width="20" text_convert="toupper" dy="7" allow_overlap="true"
min_distance="0" avoid_edges="false" label_position_tolerance="2000"
></TextSymbolizer>
<-- Reduce font size to 6 so that the name length is less than line -->
<TextSymbolizer name="NAME" face_name="DejaVu Sans Bold"
size="6" fill="rgb(0,0,0)" max_char_angle_delta="90" placement="line"
wrap_width="20" text_convert="toupper" dy="7" allow_overlap="true"
min_distance="0" avoid_edges="false" label_position_tolerance="2000"
></TextSymbolizer>
<!-- remove line placement and it works -->
<TextSymbolizer name="NAME" face_name="DejaVu Sans Bold"
size="10" fill="rgb(0,0,0)" max_char_angle_delta="90" wrap_width="20"
text_convert="toupper" dy="7" allow_overlap="true" min_distance="0"
avoid_edges="false" label_position_tolerance="2000" ></TextSymbolizer>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users