[mapserver-users] labeling

Seamus Thomas Carroll carrolls at unbc.ca
Thu Jul 11 01:12:10 EDT 2002


I see,

The class structure is like an if, else expression.  Take the next item in 
the dbf.  If the item belongs in the first class in the layer put it 
there, else look in the next class and so on.  Go on to the next item in 
the dbf.  Now that I have that understood I can make more efficient code.

Seamus


On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote:

> On 10 Jul 2002 at 15:48, Seamus Thomas Carroll wrote:
> 
> > So what your are saying is create 4 layers with the labels I want to stand 
> > out the most on the bottom of the map file.  I should split up my classes 
> > into layers. So the new order of the map file would be:
> > 
> > 1) road layer
> > 2) highway layer
> > 3) small city layer
> > 4) larger city layer
> > 
> > Using FILTERITEM to filter the layers. Yes/No ?
> 
> Yes and you can use FILTER also. To do what you want to do you can 
> NOT just use CLASS because the items in the shape file are rendered 
> in the order they are found in the shapefile, NOT the order that is 
> specified by the CLASS expressions.
> 
> > 
> > Seamus
> > 
> > 
> > 
> > 
> > On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote:
> > 
> > > On 10 Jul 2002 at 12:41, Seamus Thomas Carroll wrote:
> > > 
> > > > I want the labeling to go in this order of precedence:
> > > > 1) larger city
> > > > 2) small city
> > > > 3) highway
> > > > 4) road
> > > > Any suggestions?
> > > 
> > > Use annotation layers which will allow you some control over which 
> > > layer gets rendered first, BUT within a layer the objects get 
> > > rendered in order they are in the file. Sooo, you can order them by 
> > > sorting the shapefile, Orrrr you can create 4 annotation layers as 
> > > you list above and use a FILTERITEM or CLASSITEM to select only the 
> > > given objects that you want to annotate in the the given layer.
> > > 
> > > I hope this is clear.
> > > 
> > > -Steve
> > > 
> > 
> > 
> 
> 




More information about the mapserver-users mailing list