[Mapserver-users] expressions

Paul Dymecki pdymecki at sympatico.ca
Tue Mar 16 13:50:23 EST 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>&nbsp;&nbsp;&nbsp; I=20
was wondering how to create an expression to pull out a string from an =
attribute=20
table,&nbsp; Ex: i want to pull out the word amphibian from a field that =
has=20
"amphibian,marine,birds".&nbsp; Here is what i have so =
far:</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
"progFocus"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION=20
('[progFocus]' =3D 'amphibian'=20
)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # doesn't work when =
progFocus=20
=3D 'amphibian,marine,bird'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL=20
3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSIZE=20
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXSIZE=20
100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;=20
END</FONT></SPAN></DIV>
<DIV><SPAN class=3D321481218-16032004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</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>&nbsp;</DIV></DIV></BODY></HTML>

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




More information about the mapserver-users mailing list