Strange texte behaviour around edge

View: New views
1 Messages — Rating Filter:   Alert me  

Strange texte behaviour around edge

by Nicolas Gillet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

 

I’m writing you because I have a problem of cut label around the edge of my tiles.

I though the a buffer around tile should have avoided the problem but even with a 60% buffer (154) I still have the problem.

 

What is really weird, is the tile with the point geometry inside itself has not the text but the 3 other tiles around have a piece of it ?!

 

Symbolizer’s definition is as follow :

<Style name="58_sm">

<Rule>

                               <PointSymbolizer file="…/blue_square.png" type="png" allow_overlap="false" opacity="1" width="8" height="8" />

                </Rule>

</Style>

<Style name="59_sm">

                <Rule>

                               <TextSymbolizer name="NAME" face_name="DejaVu Sans Bold" size="12" fill="#FFFFFF" dx="0" dy="-15" placement="point" vertical_alignment="bottom" halo_fill="#000000" halo_radius="1" text_ratio="0" wrap_width="0" spacing="0" min_distance="0" avoid_edges="false" allow_overlap="false" max_char_angle_delta="0" />

                </Rule>

</Style>

 

I tried to change avoid_edges attribute with no effect at all and strangely, if allow overlap is set to true this fix the problem …

Correct me if I am wrong, but this overlap will also allow any other text to overlap which is not what I want …

 

I join two image

(hope it is allowed on mailing list otherwise is here

http://i455.photobucket.com/albums/qq279/ghurdyl/work/mapnik.jpg

http://i455.photobucket.com/albums/qq279/ghurdyl/work/normal.jpg).

These have been re-worked by hand to add a black border on top and right sides of all 4 tiles to see their junctions.

The second picture shows the result I was expecting.

 

If someone could tell me what’s wrong, because I don’t understand.

 

Thank you

 

Regards,

 

Nicolas.




_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

mapnik.JPG (50K) Download Attachment
normal.JPG (49K) Download Attachment