Akos,

One way to get around this duplication problem when labeling polygons is to 
create a point file of polygon center points and style the points so they 
are transparent, but are labeled with the name of the polygon.

This will not solve the problem of missing labels, however.  If the label is 
split I assume it would be left off, unless you manually move the points 
that suffer this indignity.

Let me know what you think of this idea.  I am a new user of GeoServer, so I 
do not speak from experience.

Al Vigil


----- Original Message ----- 
From: "Ákos Maróy" <[email protected]>
To: "Andrea Aime" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, August 14, 2012 3:17 PM
Subject: Re: [Geoserver-users] labels omitted when they would extend across 
tiles


> Andrea,
>
>> Generally speaking this is impossible. There is in fact no way to know
>> if the other
>> part of the label is going to get drawn, because that depends on the 
>> label
>> contents of the other tile, its label priorities and displacement options
>>
>> If you are 100% sure that the other labels is always going to be labelled
>> then you could try to add a new vendor option "allowPartials" that makes
>> the renderer draw cut labels in the hope that the other part will be 
>> drawn
>> in the nearby tiles (which in turn depend on their nearby tiles and so 
>> on,
>> making the labelling problem a global one, and thus incompatible with
>> the piecemeal nature of tiled requests).
>>
>> Which is something that can actually be achieved if you lay out the label
>> placement points by hand and for each zoom level on a global basis... if
>> instead you rely on automatic placement, that's quite unlikely to work 
>> for
>> all labels.
>
> I see - indeed, this doesn't seem like an easy thing to do.
>
> an additional problem would be that the 'right neighbor' tile that gets
> just the end of a label from the 'left neighbor', well, how would that
> tile know what labels to render partially? should it look 'left' for
> some distance, and figure it out?
>
> hm, interesting problem.
>
>
> Akos
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to