WFS filters with PropertyIsLike
The following requests of the itasca data returns incorrect results:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
service="WFS" version="1.0.0" outputFormat="GML2" maxFeatures="100">
<wfs:Query typeName="lakespy2">
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsLike wildCard="*" singleChar="#" escape="!">
<ogc:PropertyName>LAKE_NAME</ogc:PropertyName>
<ogc:Literal>TROUT*</ogc:Literal>
</ogc:PropertyIsLike>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>LAKE_NAME</ogc:PropertyName>
<ogc:Literal>JESSIE</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
.. returns one record (JESSIE). should return nothing.
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
service="WFS" version="1.0.0" outputFormat="GML2" maxFeatures="100">
<wfs:Query typeName="lakespy2">
<ogc:Filter>
<ogc:Or>
<ogc:PropertyIsLike wildCard="*" singleChar="#" escape="!">
<ogc:PropertyName>LAKE_NAME</ogc:PropertyName>
<ogc:Literal>TROUT*</ogc:Literal>
</ogc:PropertyIsLike>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>LAKE_NAME</ogc:PropertyName>
<ogc:Literal>JESSIE</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Or>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
.. returns one record (JESSIE). should return JESSIE and multiple records
starting with TROUT.
Doug
Change History
(6)
Cc: |
morissette@… added; assefa@… removed
|
Milestone: |
→ 4.4 release
|
Owner: |
changed from morissette@… to assefa
|
Resolution: |
→ fixed
|
Status: |
new → closed
|