[Mapserver-users] polygon label placement

Pericles S. Nacionales nacional at cbs.umn.edu
Mon Mar 29 20:17:57 PST 2004


Dean,

Just a guess but is it possible that you have a sliver polygon and that
polygon's the one getting labeled?

-Perry


On Mon, 2004-03-29 at 14:54, Dean Gadoury wrote:
> Hi,
> Every now and then I need to label polygons in MapServer and I'm often 
> unsatisfied with the resulting placement. Labeling is fine for points 
> and lines, but when it comes to polygons it can be unpredictable. I've 
> attached an image produced by MapServer in which the label for Florida 
> is in an odd location. Does anyone have any insight into how MapServer 
> decides where to place labels in polygons?
> 
> If I'm not mistaken the POSITION parameter will only place the label 
> relative to the point at which MapServer decides the label will go. 
> Depending on the label's POSITION its quite possible to have labels that 
> fall completely outside a polygon. Is there a way to force labels to be 
> within a polygon? Is there anything else I'm missing?
> 
> In the attached image the label position is CC and the label is way up 
> on the FL/AL border.
> 
> Dean
-- 
"He's no geek.His tan's too good." -Benjamin Choate




More information about the MapServer-users mailing list