[mapguide-users] WFS FDO Ignores Filter When RestrictToBBox is True
Jackie Ng
jumpinjackie at gmail.com
Tue Jul 15 03:21:53 PDT 2025
I had some time to look at the issue in question and if we trace back to
the original commit message in https://trac.osgeo.org/fdo/changeset/8194
WFS Provider: Some WFS servers support BBOX filter only, but don't support
normal filter. Some other servers support normal filter only, but don't
support BBOX filter. In order to handle the 2 kinds of WFS servers, we add
a new configuration item RestrictToBBox. If it is true, FDO WFS provider
will generate BBOX filter for queries. Otherwise, it will generate normal
filter as before
Based on my interpretation of that commit message, I believe this would be
intentional behavior. This setting seems to only be enabled to handle a
specific kind of WFS server which if your example WFS server is producing
the correct results when this setting is false then perhaps it's just a
case of not turning on this setting?
- Jackie
On Thu, 10 Jul 2025 at 21:14, Jackie Ng <jumpinjackie at gmail.com> wrote:
> Hi Crispin,
>
> Thanks for the bug report.
>
> I'm somewhat busy this week, so I'll take a look at this early next week.
>
> - Jackie
>
> You wrote:
>
> Hi,
>
> I documented this more at https://trac.osgeo.org/fdo/ticket/1009 but
> think that is fairly unmonitored and as it obviously affects MGOS4 I hope
> it can get some attention as affecting MapGuide issue.
> As MGS is by it's nature as a web mapping viewer, it applies a BBox /
> Intersects query for every web map page request.
> The issue is that if the new format RestrictToBBox = True is applied to
> the WFS query connection parameters then all property/aspatial filters are
> stripped/ignored when sent to the WFS server; resulting in an unexpected
> return of ALL data within the map window.
>
> See sample MGP package attached, based on open British Geological Survey
> data. The attached screen grab shows the WebLayout preview highlighting in
> red Basalt lithography (use the WebLayout as it zooms/centres to a sensible
> scale and area). The initial display used the connection format WITHOUT
> the BBox parameter.
> If the other Filtered themed layer is turned on, even though it has a
> filter for lithology='Basalt', all data is returned.
> It is the BBox parameter that results in unexpected results, even though
> filter and BBox are possible.
>
> See FDO ticket for details or use Fiddler etc and apply proxy parameters
> to the WFS connection to capture web traffc.
>
> Best regards,
>
> Crispin
>
>
--
http://themapguyde.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250715/942888dd/attachment.htm>
More information about the mapguide-users
mailing list