[mapserver-users] RE: querying multiple features in a layer

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Fri Nov 19 10:51:46 PST 2010


If you are saying that you are getting multiple querymaps back, try moving the querymap to the query header or footer template. (Or maybe outside of the [feature] block if you are using a modern MapServer query template)

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John
Sent: Friday, November 19, 2010 12:41 PM
To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org
Subject: [mapserver-users] RE: querying multiple features in a layer

That works, but is there a way to get the map one time only?
________________________________________
From: Lime, Steve D (DNR) [Steve.Lime at state.mn.us]
Sent: Friday, November 19, 2010 1:36 PM
To: Jackson, John; mapserver-users at lists.osgeo.org
Subject: RE: querying multiple features in a layer

You'd do something like:

  ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&...

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John
Sent: Friday, November 19, 2010 11:59 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] querying multiple features in a layer

Hello all.

I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted.
What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression.

Thanks in advance for your help.

--John Jackson
--Deputy Auditor
--Franklin County Ohio_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list