[mapserver-users] performance question - labeling roads with shields
Mark Volz
MarkVolz at co.lyon.mn.us
Tue Jan 10 11:36:32 PST 2012
Hello,
On my Application I currently am using two layers to draw my roads. The first one is a line layer that draws the road itself. The second is a annotation layer that draws the labels and the road shields. Both layers have the same source dataset. My concern is that my application is taking a performance hit since the road file is being read twice.
If there is a performance hit by reading the same data file twice, is there a way combine the line layer and annotation layer into a single layer that has both the road symbology, and labels that have shields?
Layer Roads
...
DATA MyRoads
TYPE LINE
CLASS
NAME 'State Highway'
EXPRESSION "A20"
STYLE
COLOR 0 0 0
SYMBOL 'plainline'
SIZE 5
END #style
STYLE
SYMBOL 'plainline'
SIZE 1
COLOR 255 0 0
END #style
END #class
...
END #LAYER
Layer RoadLabels
...
Data MyRoads
TYPE ANNOTATION
CLASS
TEXT ([ROADNUM])
EXPRESSION 'A20'
SYMBOL './symbols/STHWY.png'
LABEL
type truetype # AGG required
size 7 #for AGG
ANTIALIAS TRUE
FONT vera_sans #for AGG
MINFEATURESIZE 25
MINDISTANCE 200
COLOR 254 254 254
END #LABEL
END #CLASS
END #Layers
Thank You
Mark Volz
GIS Specialist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120110/f928ee80/attachment.htm>
More information about the MapServer-users
mailing list