Karsten D. (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e4cfaf2924db10e74b8110f
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
) / Bug (
https://osgeo-org.atlassian.net/browse/GEOS-10903?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
) GEOS-10903 (
https://osgeo-org.atlassian.net/browse/GEOS-10903?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
) WMS filtering with WFS 2.0.0 fails (
https://osgeo-org.atlassian.net/browse/GEOS-10903?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
)
Issue Type: Bug 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: Medium Reporter: Karsten D. (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e4cfaf2924db10e74b8110f
)
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" (
http://www.opengis.net/gml%22 ) xmlns:ogc="
http://www.opengis.net/ogc"><ogc:PropertyIsLike (
http://www.opengis.net/ogc%22><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" ( http://www.opengis.net/gml/3.2%22 )
xmlns:wfs=" http://www.opengis.net/wfs" ( http://www.opengis.net/wfs%22 )
xmlns=" http://www.opengis.net/fes/2.0" ( http://www.opengis.net/fes/2.0%22 )
xmlns:fes=" http://www.opengis.net/fes/2.0"><fes:PropertyIsLike (
http://www.opengis.net/fes/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 to 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" ( http://www.opengis.net/gml/3.2%22 )
xmlns:wfs=" http://www.opengis.net/wfs" ( http://www.opengis.net/wfs%22 )
xmlns=" http://www.opengis.net/fes/2.0" ( http://www.opengis.net/fes/2.0%22 )
xmlns:fes="
http://www.opengis.net/fes/2.0"><fes:PropertyIsEqualTo><fes:ValueReference>NAME</fes:ValueReference><fes:Literal>United
(
http://www.opengis.net/fes/2.0%22><fes:PropertyIsEqualTo><fes:ValueReference>NAME</fes:ValueReference><fes:Literal>United
) States of America</fes:Literal></fes:PropertyIsEqualTo></fes:Filter>)
Best regards
Karsten
(
https://osgeo-org.atlassian.net/browse/GEOS-10903#add-comment?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
) Add Comment (
https://osgeo-org.atlassian.net/browse/GEOS-10903#add-comment?atlOrigin=eyJpIjoiZTVkZWY0YWQ1ZDNhNDdiOGE1YjQ3YzIyYmM3M2FlODAiLCJwIjoiaiJ9
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100219-
sha1:eb3f1fe )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel