<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2>Hi</FONT></SPAN></DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2>Mapserver can't do thing like that, You can't force him to remember
previous clicks, but it doesn't have to because Your application can do things
like that. I think you could write some function that could remember the clicks
of the user, the x & y values, put it into an array and each time send
them with the latest point clicked as points to query for mapserver and use
mapscript's save and load query, i saw on userslist someone was writing about
joining query results ito one result using save and load query, probably
easy to find... I think this is the only way to do this.</FONT></SPAN></DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff size=2>Best
Regards</FONT></SPAN></DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=164281016-24042006><FONT face=Arial color=#0000ff
size=2>Artur</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU]<B>On Behalf Of </B>Xin<BR><B>Sent:</B>
Monday, April 24, 2006 3:44 PM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS]
HiLiting / selecting multiple features<BR><BR></FONT></DIV>I haven't received
a response in a while. Can anyone help with what I need?<BR><BR>
<DIV><SPAN class=gmail_quote>On 20/04/06, <B class=gmail_sendername>Xin</B>
<<A href="mailto:crazygecko@gmail.com">crazygecko@gmail.com </A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV style="DIRECTION: ltr">Hi Steve,<BR><BR>Thanks for the response.
It's always good to know there's someone out there that can help!
<BR><BR>Here's our situation. We use MapServer CGI wrapped in a C#
application. The app would call MapServer with various CGI parameters
depending on what the user is doing in the application. <BR><BR>One
functionality we need is to hilite features on a map and for it to return
results of features from other layers intersecting it. The return
results party is working great.<BR><BR>A single feature can be hilited at
the moment using mode=featurenquery, slayer, and passing img.x and
img.y. For example, this might be a building parameter. This
works to a degree. We haven't been able to control the colour
correctly with QUERYMAP and COLOR. But that's another
issue.<BR><BR>Hiliting multiple features is what we are after. We
would like our users to be able to click on a feature on the map through our
application. Then we would hilite this through MapServer. Then
the user can click on more features. We'd like the initial feature,
and any features clicked on after to be all hilighted. e.g. user
clicks on three building parameters.<BR><BR>The problem we are facing is
hiliting multiple features. Do you have any suggestions on how we may
do this?<BR></DIV>
<DIV style="DIRECTION: ltr"><SPAN class=sg><BR>Xin</SPAN></DIV>
<DIV style="DIRECTION: ltr"><SPAN class=e id=q_10ab679734cc1791_2><BR><BR>
<DIV><SPAN class=gmail_quote>On 13/04/06, <B class=gmail_sendername>Steve
Lime</B> <<A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Steve.Lime@dnr.state.mn.us"
target=_blank>Steve.Lime@dnr.state.mn.us</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Xin:
There's a big difference between a feature and a shape though.
The<BR>imgshape parameter was intended for use with something really
simple<BR>like a DHTML digitizer so at this point it only supports a
single feature. It <BR>would not be hard to hack mapserv.c to allow
mulitple instances of<BR>imgshape to build up a more complex feature
(holes, multiple outer rings).<BR><BR>I'm not sure if that's what you need
though. There are other ways to <BR>highlight features. Perhaps you could
describe the steps in which the<BR>application is used along with desired
outputs. That would make it easier<BR>to suggest
alternatives.<BR><BR>Steve<BR><BR>>>> Xin < <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:crazygecko@GMAIL.COM"
target=_blank>crazygecko@GMAIL.COM</A>> 4/13/2006 4:51:47 AM
>>><BR>We are user MapServer cgi to hilite features the user
select on. This is<BR>done by using mode=featurequery and
slayer. We need to selectemultiple<BR>features, and have them
hilighted. Having looked at the docs, there doesn't <BR>seem to
be any obvious ways of doing this.<BR><BR>One possible solution is to use
IMGSHAPE and nquery. This is documented as:<BR><BR>Shape given
in image coordinates.<BR><BR>An arbitrary polygon shape to be used for
query purposes. Multiple instances <BR>simply add parts to the shape so it
is possible to construct a shape with<BR>holes. Used with modes NQUERY and
NQUERYMAP.<BR>But using imgshape would require one than one polygon being
passed through.<BR>Rick asked this in March without getting a
response. Is it possible to pass <BR>multiple polygons using
imgshape?<BR><BR>Any other suggestions are more than
welcome.<BR><BR>Cheers,<BR>Xin<BR><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE><pre>*************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.
If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.
Thank you.
*************************************************************************
</pre></BODY></HTML>