[mapserver-users] MAP File Question
Daniel Morissette
morissette at dmsolutions.ca
Fri Dec 7 12:35:01 PST 2001
Stephen Woodbridge wrote:
>
> I have a question on how CLASSs work in the MAP file. Specifically in
> the following example does the CLASS section work like a switch
> statement int C with a break at each END? Such that if NAME = /^State
> Hwy / then does it skip the rest of the CLASSs. Or such that I could put
> a CLASS at the bottom with no EXPRESSION that could be used as a default
> CLASS if non above were executed?
>
Yes, you can put a class with no expression at the end to catch any
shape that didn't match any of the previous classes. If I remember
well, this works only with MapServer 3.5 ... older versions of MapServer
didn't like us doing that (it would crash on the null expression).
--
------------------------------------------------------------
Daniel Morissette morissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
Don't put for tomorrow what you can do today, because if
you enjoy it today you can do it again tomorrow.
More information about the MapServer-users
mailing list