Mapfile definition

Till Adams adams at TERRESTRIS.DE
Fri Nov 2 03:18:49 EDT 2007


Andre Schoonbee schrieb:

>What is the best way to define a road so that, when you zoom in, the line
>type changes.
>
>LAYER
> CLASS 1
>  STYLE 1
> CLASS 2
>  STYLE 2
>END
>
>Or is there a better way?
>Andre
>
>  
>
Andre,

this is the way to do, if you want to use several single symbols as one, 
e.g. thin line on thick line with other color.
(use the style operator for that)

What you need are the min/maxscale keywords for your class:
http://mapserver.gis.umn.edu/docs/reference/mapfile/class

Or if you just want to change size, use the SYMBOLSCALE key for layers:
http://mapserver.gis.umn.edu/docs/reference/mapfile/layer

Regars, Till


----------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany

Till Adams
Geschäftsführung

Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de 
http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------

Komplementärin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams



More information about the mapserver-users mailing list