[mapguide-users] WFS FDO Ignores Filter When RestrictToBBox is True
Crispin Hoult (TrueViewVisuals)
crispin at trueviewvisuals.com
Tue Jul 8 14:07:51 PDT 2025
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
Crispin Hoult
Founder & CEO :: Linknode Ltd, trading as TrueViewVisuals
Tel: +44 141 374 2741<tel:+441413742741>
Web: TrueViewVisuals.com<https://trueviewvisuals.com/> and RoadsOnline.co.uk<https://www.roadsonline.co.uk/>
[TVV and LCRIG - RoadsOnline]
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250708/c0098674/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WFS_MGOS_Beta3.jpg
Type: image/jpeg
Size: 288133 bytes
Desc: WFS_MGOS_Beta3.jpg
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250708/c0098674/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BGS_WFS_BBox_Test.mgp
Type: application/octet-stream
Size: 25023 bytes
Desc: BGS_WFS_BBox_Test.mgp
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20250708/c0098674/attachment.obj>
More information about the mapguide-users
mailing list