[mapserver-users] QueryObjects: What is displayed versus what is returned

Daniel Morissette morissette at dmsolutions.ca
Fri Jun 22 10:26:33 PDT 2001


David Kriske wrote:
> 
> Unfortunately, if there is a polygon that has been "masked out" due to its
> attribute not satisfying the Expression set through the setExpression method but
> the user clicks in the area where the polygon WOULD HAVE BEEN had it not been
> excluded, the queryresultobject will still return it as a record, and thus my
> PHP script will in turn generate a link to it.  Thus, while the excluded
> polygons are not displayed, by clicking on the image and using QueryUsingPoint,
> the poly is still returned in the result set.
> 
> Is there any way around this issue?
> 

Are you sure that you've set the same expression filter on the query
object that you had on the class object? 

We use query expression filters with the PHP GMap demo in queriable
layers (the cities layer) and it does work properly... so I can't see
why it wouldn't work for you.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the MapServer-users mailing list