[Fdo-trac] [fdo-trac] #1009: WFS Provider with restrictToBBox Removes Other Filters

FDO trac_fdo at osgeo.org
Tue Jul 15 14:22:23 PDT 2025


#1009: WFS Provider with restrictToBBox Removes Other Filters
--------------------------+----------------------------
 Reporter:  crispinatime  |        Owner:  christinebao
     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):

 OK, so though I was expecting something like the query below I hadn't
 realised in the WFS specification

 >> 7.9.2.5.2 KVP encoding
 >> For KVP-encoded requests the selection clause shall be encoded using
 >> one of the keywords
 >> FILTER, RESOURCEID or BBOX (see ISO 19143, Table 2).

 So it is *NOT* possible to combine a BBOX with a FILTER

 I guess my comment now is that this implementation of restrictToBBox
 (without an RFC) has effectively created a different FDO provider that had
 different capabilities.  The WFS provider publishes it's capabilities as
 ExpressionType_Basic with ConditionType_Comparison as well as
 ConditionType_Spatial.
 However, when the restrictToBBox=True the ONLY ConditionType is Spatial.
 The problem is that the capabilities are at the provider level and not at
 the connection string and so applications (like commercial AutoCAD Map)
 and others will present a WFS interface that allows property queries to be
 created but these will never be executed - resulting in a user experience
 of different resultsset than specified/expected.

 {{{
 http://ogc.bgs.ac.uk/digmap625k_gsml_insp_gs/wfs?version=2.0.0
 &service=WFS
 &REQUEST=GetFeature&service=WFS
 &TYPENAMES=gsmlp:GBR_BGS_625k_BA_INSP&REQUEST=GetFeature
 &BBOX=200000.0,600000.0,300000.0,700000.0,urn:ogc:def:crs:EPSG::27700&TYPENAMES=gsmlp:GBR_BGS_625k_BA_INSP
 &SRSNAME=urn:ogc:def:crs:EPSG::27700
 &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>
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/fdo/ticket/1009#comment:4>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list