[mapguide-users] WFS FDO Ignores Filter When RestrictToBBox is True

Jackie Ng jumpinjackie at gmail.com
Thu Jul 10 04:14:15 PDT 2025


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250710/9466a45c/attachment.htm>


More information about the mapguide-users mailing list