Hi, list
I'm using a wfs filter with openLayers but is not working. Geoserver still
sends back all the features. Here's my OL code:

* **var sites = new OpenLayers.Layer.Vector('Sites',{*
* **styleMap: styleMap,*
* **strategies: [new OpenLayers.Strategy.Fixed()], *
* **projection: new OpenLayers.Projection("EPSG:4326"), *
* **protocol: new OpenLayers.Protocol.WFS({ *
* **version: "1.1.0", *
* **    srsName: "EPSG:4326",*
* **url: '/geoserver/wfs/',*
* **featureType: 'fs',*
* **    featurePrefix: "prefix"*
* **})**,*
* **filter: new OpenLayers.Filter.Comparison({type:
OpenLayers.Filter.Comparison.EQUAL_TO,property: 'approved',value: "true"})*
* }**);*

and the request:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; service="WFS"
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; xmlns:xsi="http://www.w3.org
/2001/XMLSchema-instance">
<wfs:Query typeName="fs" srsName="EPSG:4326">
 <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
   <ogc:PropertyIsEqualTo matchCase="true">
        <ogc:PropertyName>approved</ogc:PropertyName>
        <ogc:Literal>true</ogc:Literal>
   </ogc:PropertyIsEqualTo>
 </ogc:Filter>
</wfs:Query>
</wfs:GetFeature>

Can you help me?
Thanks
-- 
Simone
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to