[mapserver-users] placement of labels from two different polygons that have the same feature shape

Stephen Woodbridge woodbri at swoodbridge.com
Fri Apr 6 11:35:09 EDT 2012


On 4/6/2012 11:07 AM, Mark Volz wrote:
> Hello,
> I would like to label both parcel polygons, and lot polygons on my map.
> Unfortunately, if the parcel and the lot have the exact same boundary,
> only the parcel is labeled. Does anyone have any ideas or map files on
> how I could label both parcel polygons and lot polygons? Am I missing a
> keyword that when the parcel is labeled at the center of the bounding
> box, a secondary label for the lots could be placed within the open area
> of the boundary box?
> I asked this question last year, at the time one person suggested that I
> could convert my data into points, which has more labeling positions.
> Unfortunately, I would prefer not to convert my data into points for
> labeling as I would like to take advantage MINFEATURESIZE AUTO which
> only works with polygons.
> P.S. I found that the wrap keyword works so It is possible to label both
> parcels and lots. However, since extra lines are added the label might
> fall on top of the wrong lot if I zoom out too far.
> Thank you
> Mark Volz
> GIS Specialist

Mark,

The easiest way to do this is to do something like set the possition of 
one to be UC and the other to be LC. you can also push them farther 
apart by using OFFSET to move the upper one higher and the lower one lower.

You might also try POSITION AUTO, but if you use BUFFER this will not help.

-Steve W


More information about the mapserver-users mailing list