[mapserver-users] QueryByAttributes
Blaise Picinbono
bpicinbono@esquirolcad.fr
Thu, 27 Jun 2002 08:35:59 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C21DB5.AA1A1F80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi everybody
I'm working with Windows and MapScript 3.5
I manage to make a simple query on attributes using setfilter and =
setfilteritem.
Now I'd like to make a query like ( ( Field_A > 100) and (Field_B =3D =
"good") ) on a layer (shp,shx,dbf).
I can't make it work.
I moved to MapServer/MapScript 3.6, as the history.txt file say that =
querybyattributes had been improved,
but it doesn't make any change.
I can't understand the syntax, and, anyway, MapServer gives me an errror =
if setfilter and setfilteritem are not set.
(the history.txt file of version 3.6 just tells that they are no more =
necessary).
Can any one help me with complex queries on shape file (shp,shx,dbf) ?
Thanks in advance
-----------------------------------------------
Blaise Picinbono
bpicinbono@esquirolcad.fr
-----------------------------------------------
------=_NextPart_000_0005_01C21DB5.AA1A1F80
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.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi everybody</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm working with Windows and MapScript=20
3.5</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I manage to make a simple query on=20
attributes using setfilter and setfilteritem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Now I'd like to make a query like =
( ( Field_A=20
> 100) and (Field_B =3D "good") ) on a layer =
(shp,shx,dbf).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I can't make it work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I moved to MapServer/MapScript 3.6, as =
the=20
history.txt file say that querybyattributes had been =
improved,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but it doesn't make any =
change.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I can't understand the syntax, and, =
anyway,=20
MapServer gives me an errror if setfilter and setfilteritem are not=20
set.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(the history.txt file of version 3.6 =
just tells=20
that they are no more necessary).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can any one help me with complex =
queries on=20
shape file (shp,shx,dbf) ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>-----------------------------------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Blaise Picinbono</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:bpicinbono@esquirolcad.fr">bpicinbono@esquirolcad.fr</A></=
FONT></DIV>
<DIV> <FONT face=3DArial=20
size=3D2>-----------------------------------------------</FONT></DIV></BO=
DY></HTML>
------=_NextPart_000_0005_01C21DB5.AA1A1F80--