[mapserver-users] force labels to centroid only

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri Dec 30 10:46:51 EST 2011


Look at the "LABEL_NO_CLIP" processing option. That tells MapServer to compute a label point before clipping to the map view.

Steve

________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Richard Greenwood [richard.greenwood at gmail.com]
Sent: Thursday, December 29, 2011 10:36 PM
To: mapserver
Subject: [mapserver-users] force labels to centroid only

When labeling Public Land Survey polygons I would like to force the
label to stay at the center of the polygon, and if the center of the
polygon is not visible in the map view (only a portion of the poly is
visible) then I do not want the label to be drawn. The way that I'm
currently doing this is with a separate point layer for labeling,
which works fine. I'm just wondering if there is a label directive
that I am overlooking that could be applied to the poly layer?

Thanks,
Rich

--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list