Hello, Earlier in the year I had asked about forcing labels in their polygons. And another person mentioned the issue in September. At the time Steve W was concerned about complexity and performance in placing labels. I was thinking lately that maybe this topic could be revisited. However, this time around instead of dealing with "optimal" label placement within a polygon, maybe something much simpler would be better. For example:
keyword : CHECKLABELFIT -FALSE: Use the BBOX for labeling. This is the current behavior, which is fast and should remain as the default. -TRUE: Once the label is placed using the current label placement engine, check to make sure the BBOX of label falls within the actual boundary of the polygon, if it does not then skip the label. This keyword should not be confused with any algorithm that places labels in an optimal position within the polygon such as one that tries to place a label horizontally, then strait if it doesn't fit. Last, since check label fit is optional, this keyword should only impact performance on layers that a user wants to verify that the label is correctly placed. It would never be needed for a layer where the polygons are rectangular such as sections, or townships. However it may be critical on soil layers. Just some thoughts Thanks Reference http://osgeo-org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html http://comments.gmane.org/gmane.comp.gis.mapserver.user/49333 Mark Volz GIS Specialist _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
