[mapserver-users] labeling

woodbri at swoodbridge.com woodbri at swoodbridge.com
Wed Jul 10 20:06:54 EDT 2002


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