<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1427222111846_274670">Thanks Giovanni-</div><div id="yui_3_16_0_1_1427222111846_274671" dir="ltr">    It seems to me that the "cache features" option and the option to fetch only the features intersecting the current map extent should be 2 separate options. <br></div><div id="yui_3_16_0_1_1427222111846_274879" dir="ltr"><br></div><div id="yui_3_16_0_1_1427222111846_274799" dir="ltr">For example, when I open a WFS layer, I might want to retrieve only the features intersecting the current map extent. Once it is loaded, I would want QGIS to cache the features.<br></div><div id="yui_3_16_0_1_1427222111846_274798" dir="ltr"><br></div><div id="yui_3_16_0_1_1427222111846_278440" dir="ltr">This is a common rendering technique used for WMS. A client requests an initial BBOX and renders the image. The when the client pans, a new request is made but only for the "missing" area. The original response is cached and merged with the second response. Just a thought...<br></div><div id="yui_3_16_0_1_1427222111846_278552" dir="ltr"><br></div><div id="yui_3_16_0_1_1427222111846_278898" dir="ltr"><br></div><div id="yui_3_16_0_1_1427222111846_278280" dir="ltr">Peter</div><div id="yui_3_16_0_1_1427222111846_278279" dir="ltr"><br></div><div id="yui_3_16_0_1_1427222111846_278278"><br></div><div id="yui_3_16_0_1_1427222111846_278277"><br></div><div id="yui_3_16_0_1_1427222111846_274526" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div id="yui_3_16_0_1_1427222111846_274525" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1427222111846_274524" dir="ltr"> <hr id="yui_3_16_0_1_1427222111846_278235" size="1">  <font id="yui_3_16_0_1_1427222111846_274523" face="Arial" size="2"> <b id="yui_3_16_0_1_1427222111846_278237"><span id="yui_3_16_0_1_1427222111846_278236" style="font-weight:bold;">From:</span></b> G. Allegri <giohappy@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Peter Borissow <peter.borissow@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, March 26, 2015 1:27 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Qgis-user] BBox Filter for WFS<br> </font> </div> <div id="yui_3_16_0_1_1427222111846_274529" class="y_msg_container"><br><div id="yiv6656597282"><div id="yui_3_16_0_1_1427222111846_274528"><div id="yui_3_16_0_1_1427222111846_274527" dir="ltr">As Marco explained in the realted post on qgis-dev the bbox filter should be used if "cahce features" option is turned off, but at the moment it seems broken, maybe because of new improvements in the rendering process. The issue has been already reported in <a id="yui_3_16_0_1_1427222111846_275128" rel="nofollow" shape="rect" target="_blank" href="http://hub.qgis.org/issues/11968">http://hub.qgis.org/issues/11968</a><div id="yui_3_16_0_1_1427222111846_274530"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274531">In the meanwhile a manual filter could be set within the WFS add layer dialog.</div><div id="yui_3_16_0_1_1427222111846_274533"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_275178">giovanni</div></div><div id="yui_3_16_0_1_1427222111846_274576" class="yiv6656597282gmail_extra"><br clear="none"><div id="yui_3_16_0_1_1427222111846_274575" class="yiv6656597282gmail_quote">2015-03-26 16:07 GMT+01:00 G. Allegri <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:giohappy@gmail.com" target="_blank" href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>></span>:<br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yiv6656597282yqt4728635127" id="yiv6656597282yqt06819"><blockquote id="yui_3_16_0_1_1427222111846_274574" class="yiv6656597282gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_1_1427222111846_274578" dir="ltr">It's an intereseting question Peter. <div id="yui_3_16_0_1_1427222111846_275129">I've verified that the wfs provider still requests the whole data the first time, then it stores eveything (and create a spatial index for subsequent calls).</div><div id="yui_3_16_0_1_1427222111846_275130">I suppose that sponsoring this feature could be the right way to have it, but I'm curious to know what the latest answer from Marco was referring to (I mean within the svn code he indicates) [1]</div><div id="yui_3_16_0_1_1427222111846_274577"><br clear="none"></div><div>Giovanni</div><div id="yui_3_16_0_1_1427222111846_278439"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274579">[1] <a id="yui_3_16_0_1_1427222111846_274580" rel="nofollow" shape="rect" target="_blank" href="http://hub.qgis.org/issues/1421#note-4">http://hub.qgis.org/issues/1421#note-4</a></div></div><div id="yui_3_16_0_1_1427222111846_274588" class="yiv6656597282gmail_extra"><br clear="none"><div id="yui_3_16_0_1_1427222111846_274587" class="yiv6656597282gmail_quote"><div><div class="yiv6656597282h5">2015-03-25 12:25 GMT+01:00 Peter Borissow <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:peter.borissow@yahoo.com" target="_blank" href="mailto:peter.borissow@yahoo.com">peter.borissow@yahoo.com</a>></span>:<br clear="none"></div></div><blockquote id="yui_3_16_0_1_1427222111846_274586" class="yiv6656597282gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_1_1427222111846_274585"><div id="yui_3_16_0_1_1427222111846_274584" class="yiv6656597282h5"><div id="yui_3_16_0_1_1427222111846_274583"><div id="yui_3_16_0_1_1427222111846_274582" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div id="yui_3_16_0_1_1427222111846_278362" dir="ltr">Sorry for being impatient but I was wondering if anyone can shed some light on this issue.</div><div id="yui_3_16_0_1_1427222111846_274581"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274589" dir="ltr">I have a WFS that's serving out over a billion features (several million records per layer). When I add a layer from the WFS into QGIS, it calls DescribeFeature and then GetFeature without a BBOX filter. QGIS then waits for ALL of the data to come back (which can take a while). </div><div id="yui_3_16_0_1_1427222111846_274590" dir="ltr"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274591" dir="ltr">In the past, there was an option only fetch features that intersect the current map extent. Without this option, it is extremely difficult to do anything with the WFS using QGIS. <br clear="none"></div><div dir="ltr"><br clear="none"></div>IMHO, this is a pretty significant bug but hopefully one that should be really easy to fix. Afterall, the code was there at some point...<br clear="none"><div id="yui_3_16_0_1_1427222111846_274592"><br clear="none"></div><div><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274662">Related (unanswered) questions on stack exchange:<br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274648"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_279446" dir="ltr"><a id="yui_3_16_0_1_1427222111846_279445" rel="nofollow" shape="rect" target="_blank" href="http://gis.stackexchange.com/questions/53387/quantumgis-1-8-how-to-define-bounding-box-within-add-wfs-layer-dialog">http://gis.stackexchange.com/questions/53387/quantumgis-1-8-how-to-define-bounding-box-within-add-wfs-layer-dialog</a><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274664" dir="ltr"><a id="yui_3_16_0_1_1427222111846_274663" rel="nofollow" shape="rect" target="_blank" href="http://gis.stackexchange.com/questions/59656/is-there-free-desktop-wfs-client-with-bbox-support">http://gis.stackexchange.com/questions/59656/is-there-free-desktop-wfs-client-with-bbox-support</a><br clear="none"></div><div><span></span></div><div id="yui_3_16_0_1_1427222111846_278361"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274669">Thanks,</div><div id="yui_3_16_0_1_1427222111846_274596" dir="ltr">Peter<br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274594"><div id="yui_3_16_0_1_1427222111846_274595" dir="ltr"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274593"><br clear="none"></div><div><br clear="none">  </div></div><div id="yui_3_16_0_1_1427222111846_274601" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div> </div><div id="yui_3_16_0_1_1427222111846_274600" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yui_3_16_0_1_1427222111846_274668"> <div id="yui_3_16_0_1_1427222111846_274667" dir="ltr"> <hr size="1">  <font id="yui_3_16_0_1_1427222111846_274666" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Peter Borissow <<a id="yui_3_16_0_1_1427222111846_274665" rel="nofollow" shape="rect" ymailto="mailto:peter.borissow@yahoo.com" target="_blank" href="mailto:peter.borissow@yahoo.com">peter.borissow@yahoo.com</a>><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> "<a rel="nofollow" shape="rect" ymailto="mailto:qgis-user@lists.osgeo.org" target="_blank" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>" <<a rel="nofollow" shape="rect" ymailto="mailto:qgis-user@lists.osgeo.org" target="_blank" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Monday, March 23, 2015 2:03 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> BBox Filter for WFS<br clear="none"> </font> </div></div><div id="yui_3_16_0_1_1427222111846_274599"><div id="yui_3_16_0_1_1427222111846_274598"> <div id="yui_3_16_0_1_1427222111846_274597"><br clear="none"><div id="yui_3_16_0_1_1427222111846_274605"><div id="yui_3_16_0_1_1427222111846_274604"><div id="yui_3_16_0_1_1427222111846_274603" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div>Hello-</div><div id="yui_3_16_0_1_1427222111846_274647" dir="ltr">    I noticed that the WFS client in QGIS 2.8 and 2.6 do not seem to pass a bbox filter when requesting features. <br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">It seems that in the past, QGIS had an option to only fetch features that intersect the current map extent:<br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274646" dir="ltr"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274609" dir="ltr"><a id="yui_3_16_0_1_1427222111846_274610" rel="nofollow" shape="rect" target="_blank" href="http://hub.qgis.org/issues/1421">http://hub.qgis.org/issues/1421</a><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274608"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274607" dir="ltr">Based on this thread, it looks like this feature was disabled in 1.8:</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="http://osdir.com/ml/qgis-user-gis/2011-10/msg00308.html">http://osdir.com/ml/qgis-user-gis/2011-10/msg00308.html</a><br clear="none"></div><div><br clear="none"></div><div dir="ltr">Is this feature still missing or is there a way to enable this feature in the latest release?</div><div id="yui_3_16_0_1_1427222111846_274606" dir="ltr"><br clear="none"></div><div id="yui_3_16_0_1_1427222111846_274602" dir="ltr"><br clear="none"></div><div dir="ltr">Thanks,</div><div dir="ltr">Peter<br clear="none"></div><div dir="ltr"><br clear="none"></div><div><br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div> </div></div></div> </div>  </div></div><br clear="none"></div></div>_______________________________________________<br clear="none">
Qgis-user mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Qgis-user@lists.osgeo.org" target="_blank" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><span class="yiv6656597282HOEnZb"><font color="#888888"><br clear="none"></font></span></blockquote></div><span class="yiv6656597282HOEnZb"><font color="#888888"><br clear="none"><br clear="all"></font></span><div><br clear="none"></div>-- <br clear="none"><div><div dir="ltr"><div><div dir="ltr">Giovanni Allegri<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://about.me/giovanniallegri">http://about.me/giovanniallegri</a></div><div dir="ltr">Gis3W - <a rel="nofollow" shape="rect" target="_blank" href="http://gis3w.it/">http://gis3w.it</a></div><div dir="ltr">Ikare - <a rel="nofollow" shape="rect" target="_blank" href="http://ikare.it/">http://ikare.it</a><br clear="none"><div>Twitter: <a rel="nofollow" shape="rect" target="_blank" href="https://twitter.com/_giohappy_">https://twitter.com/_giohappy_</a></div><div>blog: <a rel="nofollow" shape="rect" target="_blank" href="http://blog.spaziogis.it/">http://blog.spaziogis.it</a><br clear="none">GEO+ geomatica in Italia <a rel="nofollow" shape="rect" target="_blank" href="http://bit.ly/GEOplus">http://bit.ly/GEOplus</a></div></div></div></div></div>
</div>
</blockquote></div></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv6656597282gmail_signature"><div dir="ltr"><div><div dir="ltr">Giovanni Allegri<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://about.me/giovanniallegri">http://about.me/giovanniallegri</a></div><div dir="ltr">Gis3W - <a rel="nofollow" shape="rect" target="_blank" href="http://gis3w.it/">http://gis3w.it</a></div><div dir="ltr">Ikare - <a rel="nofollow" shape="rect" target="_blank" href="http://ikare.it/">http://ikare.it</a><br clear="none"><div>Twitter: <a rel="nofollow" shape="rect" target="_blank" href="https://twitter.com/_giohappy_">https://twitter.com/_giohappy_</a></div><div>blog: <a rel="nofollow" shape="rect" target="_blank" href="http://blog.spaziogis.it/">http://blog.spaziogis.it</a><br clear="none">GEO+ geomatica in Italia <a rel="nofollow" shape="rect" target="_blank" href="http://bit.ly/GEOplus">http://bit.ly/GEOplus</a></div></div></div></div></div>
</div></div></div><br><br></div> </div> </div>  </div></body></html>