Hello
We have not been able to find any documentation stating that WMS 1.3.0 cannot be filtered with a WFS version 2.0.0 filter.
At the moment we use WFS version 1.1.0 to filter WMS 1.3.0, and are a little curious to why the WFS version 2.0.0 filter is not working.
Version 2.22.2 test on the default sample data.
In geoserver interface select ‘Layer Preview’.
Select Common Formats ‘OpenLayers’ under layer with title ‘Countries’.
Next select ‘Toggle Options Toolbar’ (3 dots in upper left corner of map).
Under Filter: select OGC and paste the different examples below to test the filters.
1.1.0 (Works as expected)
(<ogc:Filter xmlns:gml=“http://www.opengis.net/gml" xmlns:ogc=“http://www.opengis.net/ogc"><ogc:PropertyIsLike wildcard=”" singlechar=“.” escapechar=“!” matchcase=“false” ><ogc:propertyname>name<=“” ogc:propertyname><ogc:literal>*united<=”" ogc:literal><=“” ogc:propertyislike><=“” ogc:filter>)=“” 2.0.0=“” like=“” (fails=“” with=“” java.lang.nullpointerexception)=“” (<fes:filter=“” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance” ](http:=“” www.w3.org=“” 2001=“” xmlschema-instance%22)=“” xmlns:gml=“[http://www.opengis.net/gml/3.2” www.opengis.net=“” gml=“” 3.2%22)=“” xmlns:wfs=“[http://www.opengis.net/wfs” wfs%22)=“” xmlns=“[http://www.opengis.net/fes/2.0” fes=“” 2.0%22)=“” xmlns:fes=“[http://www.opengis.net/fes/2.0” ><fes:propertyislike](http:=“” 2.0%22=“”><fes:propertyislike) wildcard=“" singlechar=“.” escapechar=“!” ><fes:valuereference>name<=“” fes:valuereference><fes:literal>*united<=”" fes:literal><=“” fes:propertyislike><=“” fes:filter>)=“” 2.0.0=“” equal=“” to=“” (fails=“” filter=“” wms,=“” return=“” empty=“” image=“” result)=“” (<fes:filter=“” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance” ](http:=“” www.w3.org=“” 2001=“” xmlschema-instance%22)=“” xmlns:gml=“[http://www.opengis.net/gml/3.2” www.opengis.net=“” gml=“” 3.2%22)=“” xmlns:wfs=“[http://www.opengis.net/wfs” wfs%22)=“” xmlns=“[http://www.opengis.net/fes/2.0” fes=“” 2.0%22)=“” xmlns:fes=“[http://www.opengis.net/fes/2.0” ><fes:propertyisequalto><fes:valuereference>name<=“” fes:valuereference><fes:literal>united](http:=“” 2.0%22=“”>fes:propertyisequaltofes:valuereferenceNAME</fes:valuereference>fes:literalUnited) States of America</fes:Literal></fes:PropertyIsEqualTo></fes:Filter>)
Best regards
Karsten
</fes:literal></fes:propertyisequalto></fes:propertyislike)></ogc:propertyislike)> |