hi,<br>I am trying to use Filter in a WFS request to a geoserver service :<br>...<br>//------------- WFS layer --------------------------------<br>rlayer = new OpenLayers.Layer.WFS( <br> "road", <br> "
<a href="http://127.0.0.1:8080/geoserver/wfs">http://127.0.0.1:8080/geoserver/wfs</a>", <br> { <br> typename: 'sf:roads' ,<br> filter: '<Filter><PropertyIsEqualTo><PropertyName>cat</PropertyName><Literal>5</Literal></PropertyIsEqualTo></Filter>' }
<br>);<br>map.addLayer(rlayer);<br>...<br><br>the wfs request generated by OL to geoserver is : <br><br><a href="http://127.0.0.1:8080/geoserver/wfs?typename=sf%3Aroads&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecat%3C%2FPropertyName%3E%3CLiteral%3E5%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A26713&BBOX=578818.421053%2C4910169%2C617777.578947%2C4933301">
http://127.0.0.1:8080/geoserver/wfs?typename=sf%3Aroads&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ecat%3C%2FPropertyName%3E%3CLiteral%3E5%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A26713&BBOX=578818.421053%2C4910169%2C617777.578947%2C4933301
</a><br><br>(with some cleaning : <br><a href="http://127.0.0.1:8080/geoserver/wfs?typename=sf:roads">http://127.0.0.1:8080/geoserver/wfs?typename=sf:roads</a><br>&filter=<Filter><PropertyIsEqualTo><PropertyName>cat</PropertyName><Literal>5</Literal></PropertyIsEqualTo></Filter>
<br>&SERVICE=WFS<br>&VERSION=1.0.0<br>&REQUEST=GetFeature<br>&SRS=EPSG:26713<br>&BBOX=578818.421053,4910169,617777.578947,4933301<br>)<br><br>But geoserver answers me that i can use two filters at the same time in the request : &Filter and &BBOX
<br><br><ServiceExceptionReport version="1.2.0" xsi:schemaLocation="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a> <a href="http://127.0.0.1:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd">
http://127.0.0.1:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd</a>"><br> <ServiceException><br> GetFeature KVP request contained conflicting filters. <br> Filter: <Filter><PropertyIsEqualTo><PropertyName>cat</PropertyName><Literal>5</Literal></PropertyIsEqualTo></Filter>,
<br> fid: null, <br> bbox:578818.421053,4910169,617777.578947,4933301 <br> </ServiceException><br></ServiceExceptionReport><br><br><br>in fact, i want to avoid the &bbox a the end of the wfs resquest send by OL to geoserver.
<br><br>When i take the request and i remove the &bbox param the answer is correct.<br><br><br>Perhaps someone can help me?<br><br><br>I am using : <br>OpenLayers version : 2.4<br>geoserver version : 1.5.2<br><br><br>
Many thanks,<br>Marc.<br><br>