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. Bascially I have some land parcels (Polygons) that have planning applications (Polygons) over teh top. 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't BUTT onto as they would come from a different property. The easiest way I thought of was to have a negative tolerance of say 10cm or so but MapServer doesn'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> <<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com
</a>> 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 <<a href="mailto:mikesaunt@gmail.com">mikesaunt@gmail.com
</a>> wrote:<br><br>> I want a user to be able to interactively from multiple clicks on a map to<br>> select features and then they can issue a query taking all selected features<br>> and doing feature intersect queries against multiple other layers. Pretty
<br>> 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>> I'm fine with writing wrapper code to allow the user to select a feature at
<br>> a point - MODE=QUERY - and then find and store the feature id's for<br>> subsequent calls to the CGI<br>><br>> Is there a way to be able to pass multiple feature id's to MapServer to<br>> highlight as selected in a maps?
<br><br>Yes, with mode=itemnquery<br><br> Then in the same fashion can I pass<br>> multiple feature id's (acting as the selection again) to then be used in a<br>> 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>