[Mapserver-users] how to create a map with the query result ?
christophe javoy
christophe.javoy at aurg.asso.fr
Thu Mar 4 02:09:15 PST 2004
This is a multi-part message in MIME format.
------_=_NextPart_001_01C401D0.BF885128
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello,
=20
I made a queryByAttributes on a MapInfo table. I would like to create a
new map only with the result.
=20
$oLayer =3D $oMap->GetLayer(0);
$oLayer->open();=20
$oLayer->queryByAttributes('Num_INSEE','/'.$filter.'/',MS_MULTIPLE);
the result of the query is > 0.=20
What is the process : create a new layer ? create a new mapfile ? get
all the shapeobj and insert them in layer ?
please, somebody can help me ?
Christophe
=20
------_=_NextPart_001_01C401D0.BF885128
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 5.50.4727.700" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D352230210-04032004><FONT face=3DArial=20
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D352230210-04032004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D352230210-04032004><FONT face=3DArial size=3D2>I made =
a=20
queryByAttributes on a MapInfo table. I would like to create a new map =
only with=20
the result.</FONT></SPAN></DIV>
<DIV><SPAN class=3D352230210-04032004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D352230210-04032004><FONT color=3D#800000><SPAN=20
class=3D352230210-04032004><FONT color=3D#000000><FONT color=3D#800000>
<P><FONT face=3DArial size=3D2>$oLayer</FONT></FONT><FONT size=3D2><FONT =
face=3DArial> =3D=20
<FONT color=3D#800000>$oMap</FONT><B>-></B>GetLayer(</FONT><FONT =
face=3DArial=20
color=3D#ff0000>0</FONT><FONT face=3DArial>);</FONT></FONT></P>
<P><FONT face=3DArial><FONT size=3D2><FONT=20
color=3D#800000>$oLayer</FONT><B>-></B>open(); </FONT></FONT></P>
<P><FONT size=3D2><FONT face=3DArial><FONT=20
color=3D#800000>$oLayer</FONT><B>-></B>queryByAttributes(</FONT><FONT =
face=3DArial><FONT color=3D#0000f0>'Num_INSEE'</FONT>,<FONT=20
color=3D#0000f0>'/'</FONT>.<FONT color=3D#800000>$filter</FONT>.<FONT=20
color=3D#0000f0>'/'</FONT>,MS_MULTIPLE);</FONT></FONT></P>
<P><SPAN class=3D352230210-04032004><FONT face=3DArial size=3D2>the =
result of the=20
query is > 0. </FONT></SPAN></P>
<P><SPAN class=3D352230210-04032004><FONT face=3DArial size=3D2>What is =
the process :=20
create a new layer ? create a new mapfile ? get all the shapeobj and =
insert them=20
in layer ?</FONT></SPAN></P>
<P><SPAN class=3D352230210-04032004><FONT face=3DArial size=3D2>please, =
somebody can=20
help me ?</FONT></SPAN></P>
<P><SPAN class=3D352230210-04032004><FONT face=3DArial=20
size=3D2>Christophe</FONT></SPAN></P></FONT></SPAN></FONT>
<P><SPAN class=3D352230210-04032004><FONT=20
size=3D2></FONT></SPAN> </P></SPAN></DIV></BODY></HTML>
=00
------_=_NextPart_001_01C401D0.BF885128--
More information about the MapServer-users
mailing list