[mapserver-users] How to label a feature once.

Paul Moen pmoen at offroadsoftware.com
Thu Jun 11 22:59:55 EDT 2009


Is there anyway to label a polygon once?  One feature one label.  I am  
using Mapserver 5.4.1.  Image below shows the problem, there seem to  
be 4 labels in each township polygon.

	LAYER
		NAME "Townships"
		PROJECTION
			"proj=longlat"
			"ellps=GRS80"
			"datum=NAD83"
			"no_defs"
		END
		DATA townships_poly
		TYPE POLYGON
		TEMPLATE "dummy"
		LABELITEM twprng
		STATUS ON
		CLASS
			MAXSCALEDENOM 450000
			MINSCALEDENOM 40000
			NAME "Townships"
			STYLE
				SYMBOL 'circle_shortlong_dash'
				SIZE 1
				OUTLINECOLOR 125 125 125
			END
			LABEL
				FONT helveticabold
				TYPE TRUETYPE
				SIZE 10
				COLOR 125 125 125
				OUTLINECOLOR 251 239 136
				POSITION auto
			END
		END
	END
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.gif
Type: image/gif
Size: 9552 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090611/0196ea07/sample.gif
-------------- next part --------------



More information about the mapserver-users mailing list