[mapserver-users] Still impossible to force labels inside their polygons?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Sep 4 07:47:40 PDT 2012


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
> Sent: Tuesday, September 04, 2012 9:17 AM
> To: 'Mapserver-Users (mapserver-users at lists.osgeo.org)'
> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: labels_outside_their_polygons.png
Type: image/png
Size: 13670 bytes
Desc: labels_outside_their_polygons.png
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120904/d9af41f1/attachment.png>


More information about the MapServer-users mailing list