[Geoserver-devel] [JIRA] (GEOS-10903) WMS filtering with WFS 2.0.0 fails

Karsten D. created an issue

GeoServer / BugGEOS-10903

WMS filtering with WFS 2.0.0 fails

Issue Type:

BugBug

Affects Versions:

2.21.2, 2.22.2

Assignee:

Unassigned

Components:

WFS, WMS

Created:

22/Mar/23 2:44 PM

Environment:

Windows server 2019
Java 11
Tomcat 9

Priority:

MediumMedium

Reporter:

Karsten D.

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)>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100219-sha1:eb3f1fe)

Atlassian logo