<div dir="ltr">I had some time to look at the issue in question and if we trace back to the original commit message in <a href="https://trac.osgeo.org/fdo/changeset/8194">https://trac.osgeo.org/fdo/changeset/8194</a><br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">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</blockquote><br>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?<div><br></div><div>- Jackie<br><div><br></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 10 Jul 2025 at 21:14, Jackie Ng <<a href="mailto:jumpinjackie@gmail.com">jumpinjackie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Crispin,</div><div><br></div><div>Thanks for the bug report.</div><div><br></div><div>I'm somewhat busy this week, so I'll take a look at this early next week.</div><div><br></div><div>- Jackie</div><div><br></div><div>You wrote:</div><div><br></div><div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">Hi,</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)"><br></div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">I documented this more at <a id="m_-5571762519956893523m_-5762571546764814648LPlnk772734" href="https://trac.osgeo.org/fdo/ticket/1009" target="_blank">https://trac.osgeo.org/fdo/ticket/1009</a> but think that is fairly unmonitored and as it obviously affects MGOS4 I hope it can get some attention as affecting MapGuide issue.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">As MGS is by it's nature as a web mapping viewer, it applies a BBox / Intersects query for every web map page request.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">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.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)"><br></div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">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.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">If the other Filtered themed layer is turned on, even though it has a filter for lithology='Basalt', all data is returned.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">It is the BBox parameter that results in unexpected results, even though filter and BBox are possible.</div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)"><br></div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)">See FDO ticket for details or use Fiddler etc and apply proxy parameters to the WFS connection to capture web traffc.</div><div id="m_-5571762519956893523m_-5762571546764814648Signature"><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt;color:rgb(0,0,0)"><br></div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt"> Best regards,</div><div><br></div><div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:11pt">  Crispin</div><br></div></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><a href="http://themapguyde.blogspot.com" target="_blank">http://themapguyde.blogspot.com</a></div></div></div></div>