[Mapserver-users] expressions
Steve Lime
steve.lime at dnr.state.mn.us
Tue Mar 16 11:09:42 PST 2004
The =/eq operator implies an exact match. You need a substring matching
operator.
Regular expressions should do the trick. Try:
CLASSITEM 'progfocus'
CLASS
EXPRESSION /amphibian/
...
END
Steve
>>> "Paul Dymecki" <pdymecki at SYMPATICO.CA> 3/16/2004 12:50:23 PM >>>
Hello,
I was wondering how to create an expression to pull out a string
from an
attribute table, Ex: i want to pull out the word amphibian from a
field
that has "amphibian,marine,birds". Here is what i have so far:
CLASS
NAME "progFocus"
EXPRESSION ('[progFocus]' = 'amphibian' )
# doesn't work when progFocus = 'amphibian,marine,bird'
STYLE
SYMBOL 3
COLOR 0 0 0
SIZE 6
MINSIZE 1
MAXSIZE 100
END
END
Would this require a regex expressions ?
thx,
Paul
More information about the MapServer-users
mailing list