[mapserver-users] Duplicate results with processquerytemplate

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Fri Mar 29 10:38:44 PDT 2013


Hard to know without seeing code and how you're triggering the searches. You should probably tweak things so that you don't do queryByShape() against the layers you pulled the shapes from in the first place. My guess is that the search results are still cached with those layers...

Steve

________________________________
From: Bistrais, Bob [Bob.Bistrais at maine.gov]
Sent: Friday, March 29, 2013 11:55 AM
To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org
Subject: RE: Duplicate results with processquerytemplate

Yes.  This only happens to the first selection layer if more than one selection layer is processed.  For example, I have check boxes for the selection layers. Assume you have already established a query layer.  Then check selection layer 1, selection layer 2, etc.  Duplicate results will appear for selection layer 1.  But, if you only choose one selection layer, you don’t get duplicate results.

From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us]
Sent: Friday, March 29, 2013 12:52 PM
To: Bistrais, Bob; mapserver-users at lists.osgeo.org
Subject: RE: Duplicate results with processquerytemplate

Is it the selection layer that is duplicated?

Steve
________________________________
From: Bistrais, Bob [Bob.Bistrais at maine.gov]
Sent: Friday, March 29, 2013 11:46 AM
To: Lime, Steve D (MNIT); mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: RE: Duplicate results with processquerytemplate
It’s a queryByShape, using a selection from another layer, such as a town polygon.

From: Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us]
Sent: Friday, March 29, 2013 12:36 PM
To: Bistrais, Bob; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: RE: Duplicate results with processquerytemplate

What type of query are you triggering?
________________________________
From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mapserver-users-bounces at lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais at maine.gov]
Sent: Friday, March 29, 2013 11:02 AM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Duplicate results with processquerytemplate
I have a strange problem which sometimes occurs when I query multiple layers.  I have an application where a user may click checkboxes to select layers to query.  I found that if they select all layers, the query results will appear twice for the first layer.  I checked several times, and as far as I can see, that first layer is only queried once.  It seems that the duplicate processing occurs when $map->processQueryTemplate is called.

Has anyone ever seen a problem like that, and what might anyone suggest as a fix?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130329/e8befdc7/attachment.html>


More information about the mapserver-users mailing list