[Fdo-trac] [fdo-trac] #1009: WFS Provider with restrictToBBox Removes Other Filters
FDO
trac_fdo at osgeo.org
Tue Jul 8 01:30:44 PDT 2025
#1009: WFS Provider with restrictToBBox Removes Other Filters
--------------------------+-------------------------
Reporter: crispinatime | Owner: gregboone
Type: defect | Status: new
Priority: major | Milestone: 4.1.0
Component: FDO API | Version: 4.1.0
Severity: 1 | Resolution:
Keywords: | External ID:
--------------------------+-------------------------
Comment (by crispinatime):
Examples of queries generated:
**FDO (with restrictToBBox=true) - Spatial Only**
Uses simple &BBOX=... (as expected)
{{{
/digmap625k_gsml_insp_gs/wfs?version=1.1.0&service=WFS&REQUEST=GetFeature&TYPENAME=gsmlp:GBR_BGS_625k_BA_INSP&BBOX=263304.734252,657265.084785,454020.971352,791125.014489,urn:ogc:def:crs:EPSG::27700&SRSNAME=urn:ogc:def:crs:EPSG::27700
}}}
**FDO (with restrictToBBox=true) - ASpatial Only**
Uses FILTER=<Filter... (as expected)
{{{
/digmap625k_gsml_insp_gs/wfs?version=1.1.0&service=WFS&REQUEST=GetFeature&TYPENAME=gsmlp:GBR_BGS_625k_BA_INSP&Filter=<Filter
xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
xmlns:gsmlp="http://xmlns.geosciml.org/geosciml-
portrayal/4.0"><PropertyIsEqualTo><PropertyName>lithology</PropertyName><Literal>Basalt</Literal></PropertyIsEqualTo></Filter>
}}}
**FDO (with restrictToBBox=true) - Spatial AND ASpatial**
Uses simple BBOX=... **removing the specified aspatial filter**
{{{
/digmap625k_gsml_insp_gs/wfs?version=1.1.0&service=WFS&REQUEST=GetFeature&TYPENAME=gsmlp:GBR_BGS_625k_BA_INSP&BBOX=241386.224517,665954.017889,445455.116525,790243.529114,urn:ogc:def:crs:EPSG::27700&SRSNAME=urn:ogc:def:crs:EPSG::27700
}}}
**FDO (withOUT restrictToBBox setting) - Spatial AND ASpatial**
Uses complex FILTER=<Filter... (with embedded gml:polygon [compare with
QGIS below] returns results as expected)
{{{
/digmap625k_gsml_insp_gs/wfs?version=2.0.0&service=WFS&REQUEST=GetFeature&TYPENAMES=gsmlp:GBR_BGS_625k_BA_INSP&Filter=<Filter
xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
xmlns:gsmlp="http://xmlns.geosciml.org/geosciml-
portrayal/4.0"><And><Intersects><PropertyName>shape</PropertyName><gml:Polygon
srsName="urn:ogc:def:crs:EPSG::27700"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>225010.325812,793013.913218
225010.325812,666961.430196 449486.105655,666961.430196
449486.105655,793013.913218
225010.325812,793013.913218</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects><PropertyIsEqualTo><PropertyName>lithology</PropertyName><Literal>Basalt</Literal></PropertyIsEqualTo></And></Filter>
}}}
**Comparison - QGIS**
**QGIS - Spatial Only**
Uses simple &BBOX=...
{{{
/digmap625k_gsml_insp_gs/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=gsmlp:GBR_BGS_625k_BA_INSP&SRSNAME=urn:ogc:def:crs:EPSG::27700&BBOX=359799.36550125665962696,675504.10112214973196387,361599.55468222999479622,676748.03888735943473876,urn:ogc:def:crs:EPSG::27700
}}}
**QGIS With Aspatial**
Uses complex FILTER=<ogc:Filter... (with embedded BBOX)
{{{
/digmap625k_gsml_insp_gs/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&TYPENAME=gsmlp:GBR_BGS_625k_BA_INSP&SRSNAME=urn:ogc:def:crs:EPSG::27700&FILTER=<ogc:Filter
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc">
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>shape</ogc:PropertyName>
<gml:Envelope srsName="urn:ogc:def:crs:EPSG::27700">
<gml:lowerCorner>360548 673746</gml:lowerCorner>
<gml:upperCorner>364148 676234</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyName
xmlns:ogc="http://www.opengis.net/ogc">lithology</ogc:PropertyName>
<ogc:Literal
xmlns:ogc="http://www.opengis.net/ogc">Basalt</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
}}}
--
Ticket URL: <https://trac.osgeo.org/fdo/ticket/1009#comment:2>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list