Possible MapServer development work

Richard Greenwood richard.greenwood at GMAIL.COM
Tue Apr 3 20:10:20 PDT 2007


On 4/3/07, Mike Saunt <mikesaunt at gmail.com> wrote:

> I want a user to be able to interactively from multiple clicks on a map to
> select features and then they can issue a query taking all selected features
> and doing feature intersect queries against multiple other layers.  Pretty
> simple!

You could do an asynchronous call to mapserv for each click and get
the each feature ID back, and store it in a JavaScrit array.

> I'm fine with writing wrapper code to allow the user to select a feature at
> a point - MODE=QUERY - and then find and store the feature id's for
> subsequent calls to the CGI
>
> Is there a way to be able to pass multiple feature id's to MapServer to
> highlight as selected in a maps?

Yes, with mode=itemnquery

 Then in the same fashion can I pass
> multiple feature id's (acting as the selection again) to then be used in a
> NQUERY to find which features from other layers intersect.

If I was doing it, and if I could use postgis, I would pass the
parameters to a php page, run the query in postgis, get the feature
IDs back, and then do another itemnquery with mapserv to graphically
render it. This would not require mapscript, but would require php or
some other server-side language that can connect to postgis.

Rich

-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com



More information about the MapServer-users mailing list