[mapserver-users] RE: 5.4 beta 3 - GetFeatureInfo /FILTER problems
shanksje at yahoo.com
Thu Mar 12 16:33:17 EDT 2009
Gregor at HostGIS came to the rescue on this one. He did some testing and suggested adding parenthesis to my filter statement. So if I do the following my request returns the correct response:
FILTER "(access_cod = 'Restricted Access' or access_cod = 'Open Access')"
----- Forwarded Message ----
From: Jennifer Shanks <shanksje at yahoo.com>
To: mapserver-users at lists.osgeo.org
Sent: Thursday, March 12, 2009 1:55:07 PM
Subject: 5.4 beta 3 - GetFeatureInfo /FILTER problems
We installed 5.4 beta 3 last night to take advantage of the new labeling options. The new labels are great!
I've noticed a problem with my GetFeatureInfo requests. If there is a data FILTER on the layer, the request returns the wrong feature (always the same feature, no matter which location I select in CA. If I comment out the FILTER, the request returns the correct result. Below is an example of my layer.
And a request looks like this:
If I use this same request, I get different results depending on whether the filter is turned on or off.
Any suggestions as to how I can fix this would be much appreciated.
CONNECTION "user=mapserver password=******* dbname=parkinfo_current host=localhost"
DATA "the_geom_gcs from statewide_osdb_notsvector as foo using unique gid using srid=4326"
#FILTER "access_cod = 'Restricted Access' or access_cod = 'Open Access'"
OUTLINECOLOR 255 0 0
END # Layer
More information about the mapserver-users