[Mapserver-users] expressions

Paul Dymecki pdymecki at sympatico.ca
Tue Mar 16 10:50:23 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C40B5D.A11D69E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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

------=_NextPart_000_000A_01C40B5D.A11D69E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial =
size=3D2>    I=20
was wondering how to create an expression to pull out a string from an =
attribute=20
table,  Ex: i want to pull out the word amphibian from a field that =
has=20
"amphibian,marine,birds".  Here is what i have so =
far:</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>CLASS<BR>      NAME=20
"progFocus"<BR>        EXPRESSION=20
('[progFocus]' =3D 'amphibian'=20
)      </FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>        # doesn't work when =
progFocus=20
=3D 'amphibian,marine,bird'<BR>     =20
STYLE<BR>        SYMBOL=20
3<BR>        COLOR 0 0=20
0<BR>        SIZE=20
6<BR>        MINSIZE=20
1<BR>        MAXSIZE=20
100<BR>      END<BR>   =20
END</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial size=3D2>Would =
this require a=20
regex expressions ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>thx,</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>Paul</FONT></SPAN></DIV>
<DIV><SPAN =
class=3D321481218-16032004></SPAN> </DIV></DIV></BODY></HTML>

------=_NextPart_000_000A_01C40B5D.A11D69E0--




More information about the MapServer-users mailing list