[mapserver-users] Problem with mapfile FILTER and WFS non spatial filter
Francesco D'Alesio
francesco.dalesio at r3-gis.com
Fri Sep 2 08:49:52 PDT 2011
Hello,
I have a problem using a WFS filter on a non spatial attribute: when I
use a WFS filter on a non-spatial attribute, it ignores the filter set
in mapfile.
This is the mapfile filter.
FILTER "lang_id='de'"
This is the WFS filter.
<ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>attribute_1</ogc:PropertyName><ogc:Literal>test</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
In this case, it ignores lang_id='de'.
Using this other filter,
<ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:25832"><gml:lowerCorner>723607.84958682
5175592.8275148</gml:lowerCorner><gml:upperCorner>723614.37390473
5175597.3352253</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter>
it uses, correctly, both the mapfile filter and the BBOX WFS filter.
If I use both BBOX and attribute, it ignores the mapfile filter.
Other (maybe) useful information:
MapServer 5.6.7 and MapServer 5.6.5
CONNECTIONTYPE POSTGIS
Tried both WFS version 1.1.0 and 1.0.0
Tried gml/wfs_in/exclude_items for lang_id
Anyone noticed this behaviour before?
Thank you
Best Regards,
Francesco
francesco.dalesio at r3-gis.com
--
More information about the MapServer-users
mailing list