Thanks Richard <br><br>The highlighting now works a treat - I used an Expression in the end i.e. <br><br>qstring=(([UPRN] = 100061562714) OR ([UPRN] = 100061561248))<br><br>The only other thing I would love to do via the straight CGI is to be able to specify a negativeTOLERANCE.&nbsp; Bascially I have some land parcels (Polygons) that have planning applications (Polygons) over teh top.&nbsp; I want the user to be able to select one or more Land Parcels (done above) and then only find the Planning Applications that Intersect but don&#39;t BUTT onto as they would come from a different property.&nbsp; The easiest way I thought of was to have a negative tolerance of say 10cm or so but MapServer doesn&#39;t seem to like negative TOLERANCES.
<br><br>Any thoughts?<br><br>Cheers<br>mike<br><br><br><div><span class="gmail_quote">On 04/04/07, <b class="gmail_sendername">Richard Greenwood</b> &lt;<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 4/3/07, Mike Saunt &lt;<a href="mailto:mikesaunt@gmail.com">mikesaunt@gmail.com
</a>&gt; wrote:<br><br>&gt; I want a user to be able to interactively from multiple clicks on a map to<br>&gt; select features and then they can issue a query taking all selected features<br>&gt; and doing feature intersect queries against multiple other layers.&nbsp;&nbsp;Pretty
<br>&gt; simple!<br><br>You could do an asynchronous call to mapserv for each click and get<br>the each feature ID back, and store it in a JavaScrit array.<br><br>&gt; I&#39;m fine with writing wrapper code to allow the user to select a feature at
<br>&gt; a point - MODE=QUERY - and then find and store the feature id&#39;s for<br>&gt; subsequent calls to the CGI<br>&gt;<br>&gt; Is there a way to be able to pass multiple feature id&#39;s to MapServer to<br>&gt; highlight as selected in a maps?
<br><br>Yes, with mode=itemnquery<br><br> Then in the same fashion can I pass<br>&gt; multiple feature id&#39;s (acting as the selection again) to then be used in a<br>&gt; NQUERY to find which features from other layers intersect.
<br><br>If I was doing it, and if I could use postgis, I would pass the<br>parameters to a php page, run the query in postgis, get the feature<br>IDs back, and then do another itemnquery with mapserv to graphically<br>render it. This would not require mapscript, but would require php or
<br>some other server-side language that can connect to postgis.<br><br>Rich<br><br>--<br>Richard Greenwood<br><a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br><a href="http://www.greenwoodmap.com">
www.greenwoodmap.com</a><br></blockquote></div><br>