[mapserver-users] RE: performance question - labeling roads with
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Tue Jan 10 18:29:00 EST 2012
Hi Mark: With the changes in label styles in 6.0 you should be able to combine the layers, for example:
STYLE # orange lines with a brownish outline
WIDTH 4 MAXWIDTH 8 MINWIDTH 4
COLOR 242 191 36
OUTLINECOLOR 187 176 157
That should be all there is to it- all in one pass.
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Tuesday, January 10, 2012 1:37 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] performance question - labeling roads with shields
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?
NAME 'State Highway'
COLOR 0 0 0
COLOR 255 0 0
type truetype # AGG required
size 7 #for AGG
FONT vera_sans #for AGG
COLOR 254 254 254
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users