*my filter is working fine now so i don't have any idea why all features are
displaying again when i search for just for some.*
*the WFS POST generates:*

<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="feature:Initial_view" srsName="EPSG:3857"
xmlns:feature="http://mapmap.org";><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc";><ogc:BBOX><gml:Envelope
xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:3857"><gml:lowerCorner>-1090909.2675342
1510885.0470818</gml:lowerCorner><gml:upperCorner>11109663.437534
4240604.200822</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

*
in another side, when i do a normal filter (in vector layer params) :
filter: var my_filter = new OpenLayers.Filter.Comparison({ 
    type: OpenLayers.Filter.Comparison.EQUAL_TO,
                        property: "type",
                        value: 50           
    }); 

it works fine and i got only what i searched for (features with type 50 )
the WFS POST generates:*

<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="feature:Initial_view" srsName="EPSG:3857"
xmlns:feature="http://mapmap.org";><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc";><ogc:And><ogc:PropertyIsEqualTo
matchCase="true">*<ogc:PropertyName>type</ogc:PropertyName><ogc:Literal>50</ogc:Literal></ogc:PropertyIsEqualTo>*<ogc:BBOX><gml:Envelope
xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:3857"><gml:lowerCorner>-1090909.2675342
1510885.0470818</gml:lowerCorner><gml:upperCorner>11109663.437534
4240604.200822</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:And></ogc:Filter></wfs:Query></wfs:GetFeature>

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/need-a-little-help-with-this-user-input-wfsprotocol-read-tp4468479p4491047.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to