HiLiting / selecting multiple features

Steve Lime Steve.Lime at DNR.STATE.MN.US
Thu Apr 13 13:28:25 EDT 2006


Xin: There's a big difference between a feature and a shape though. The
imgshape parameter was intended for use with something really simple
like a DHTML digitizer so at this point it only supports a single feature. It
would not be hard to hack mapserv.c to allow mulitple instances of
imgshape to build up a more complex feature (holes, multiple outer rings).

I'm not sure if that's what you need though. There are other ways to 
highlight features. Perhaps you could describe the steps in which the
application is used along with desired outputs. That would make it easier
to suggest alternatives.

Steve

>>> Xin <crazygecko at GMAIL.COM> 4/13/2006 4:51:47 AM >>>
We are user MapServer cgi to hilite features the user select on.  This is
done by using mode=featurequery and slayer.  We need to selectemultiple
features, and have them hilighted.  Having looked at the docs, there doesn't
seem to be any obvious ways of doing this.

One possible solution is to use IMGSHAPE and nquery.  This is documented as:

Shape given in image coordinates.

An arbitrary polygon shape to be used for query purposes. Multiple instances
simply add parts to the shape so it is possible to construct a shape with
holes. Used with modes NQUERY and NQUERYMAP.
But using imgshape would require one than one polygon being passed through.
Rick asked this in March without getting a response.  Is it possible to pass
multiple polygons using imgshape?

Any other suggestions are more than welcome.

Cheers,
Xin



More information about the mapserver-users mailing list