[mapserver-users] labels - road shields and road names

Mark Volz MarkVolz at co.lyon.mn.us
Fri Nov 13 09:59:33 PST 2009


Hello,

What is the best way to label a road displaying both the road number in a
shield and the road name along the line.  The following does not seem to work



The following is an attachment for my roads file. 

Layer #road annotation
	Data '.roads'
	Type annotation
	Classitem 'class'
	CLASS #US HWY shields
		TEXT ([ROAD_NUM])
		EXPRESSION ('[CLASS]' eq 'A10' and '[ROAD_NUM]' ne '0')
		COLOR 0 0 0 # dummy color
		SYMBOL '../../symbols/USHWY.png'
		LABEL
				type truetype  # AGG required 
				size 7 #for AGG
			FONT vera_sans  #for AGG
				MINFEATURESIZE 25
				MINDISTANCE 200
		END #LABEL
END #CLASS
	CLASS #US HWY
		MAXSCALEDENOM 75000
		TEXT ([FULLNAME])
		EXPRESSION ('[CLASS]' eq 'A10' and '[ROAD_NUM]' ne '0')
		SYMBOL '../../symbols/USHWY.png'
		LABEL
			TYPE TRUETYPE
			FONT franklin-gothic-heavy
			SIZE 7
			ANTIALIAS TRUE
			OUTLINECOLOR 254 254 254
			BUFFER 0
			MINFEATURESIZE auto
			PARTIALS FALSE
			ANGLE AUTO
		END #LABEL
	END #CLASS
...



Mark Volz
GIS Specialist
Lyon County, MN
507-532-8218


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091113/f9ca54ef/attachment.htm>


More information about the MapServer-users mailing list