AnsweredAssumed Answered

How to construct a WFS-URL that both filters on an attribute and uses a boudingbox filter

Question asked by madagasie on Feb 6, 2015
Latest reply on Feb 25, 2015 by madagasie

Dear community,


In an attempt not to request too many features from a WFS i'd like to apply both a attribute filter and a bounding box/envelope. Although these two types of filters seem to be "mutually exclusive" according to the OGC specification, I was wondering if they could somehow be combined within a single filter through for example the use of the AND-operator. Anyone any advise? I am working on the following WFS:


What I've tried, but doesn't work out is:


1:Via the url<ogc:Filter xmlns=&quot; xmlns:gml= xmlns:xsi= xmlns:bag= xsi:schemaLocation= &quot;><And><ogc:BBOX><ogc:PropertyName>Shape</ogc:PropertyName><gml:Box srsName=&quot;urn:x-ogc:def:crs:EPSG:28992&quot;><gml:coordinates>508576,107240 510167,109000</gml:coordinates></gml:Box></ogc:BBOX><Within><PropertyIsEqualTo><PropertyName>status</PropertyName><Literal>Bouwvergunning verleend</Literal></PropertyIsEqualTo></Within></And></ogc:Filter>


2:via use of the xml-filter expression






      <ogc:Literal>Bouwvergunning verleend</ogc:Literal>



      <gml:Envelope srsDimension="2" srsName="urn:ogc:def:crs:EPSG::28992">

        <gml:lowerCorner>107240 508576</gml:lowerCorner>

        <gml:upperCorner>109000 510167</gml:upperCorner>






source used:


Any advice is much appreciated!