It's tough to know what I'm looking at from the picture. What does the layer definition look like?
At the moment polygon label point computation tries a couple of approaches get a label point inside the polygon: 1) compute a center of gravity 2) if that computation doesn't work (e.g. point is too close to the edge) then a scanline-based process is used to sample possible positions. The mid-point of the longest y sample is used. It's always trade-off with speed and the above seems a happy medium. Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To: 'Mapserver-Users ([email protected])' Subject: Re: [mapserver-users] Still impossible to force labels inside their polygons? Hi, Thank you for the answer. A little screenshot shows an example with two label points inside one polygon and one polygon without a label point at all. Perhaps we could have more accurate polygon label positioning on our wish list. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: > Aihe: RE: [mapserver-users] Still impossible to force labels inside > their polygons? > > Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you > close. However, MINFEATURESIZE AUTO uses bounding box checks and > doesn't intersect a feature geometry with its label geometry. > > Steve > > -----Original Message----- > From: [email protected] [mailto:mapserver-users- > [email protected]] On Behalf Of Rahkonen Jukka > Sent: Tuesday, September 04, 2012 9:17 AM > To: 'Mapserver-Users ([email protected])' > Subject: [mapserver-users] Still impossible to force labels inside > their polygons? > > Hi, > > Is the short answer by Stephen Woodbridge "No" in the tread > http://osgeo- > org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html > still valid? > > I have been trying to label a polygon dataset with Mapserver 6.2 beta2 > and some labels keep on falling outside their polygons. By the way, > the thread contains an advice that does not work for me: > " By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point > at the polygon center. > -SteveW " > > Is the solution to create a new layer with point-on-surface function > and label then this point layer? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
