Hi, I'd like to enhance a WFS-alike Python plugin with caching. Currently it simply creates a vector layer and attaches a REST webservice on it which returns GeoJSON. From this time, the layer is not controlled anymore by the plugin and reloads everytime the layer get's zoomed/panned or after QGIS project is re-opened. Now I'd like to refactor it and get more control over the layer and implement caching. 1. What would be the best approach to implement the caching ? With a temp file? 2. How to tell QGIS after reloading the project, that the plugin is needed (on a different machine or in case the plugin got de-installed)?
Cheers, S. 2015-03-26 18:17 GMT+01:00 Marco Hugentobler <[email protected]>: > Hi Giovanni > > Unchecking the option 'cache features' did exactly that (first fetch based > on current view extent and refetching of new parts when panning). This seems > broken now (maybe since the multithreaded rendering?). > > Another (not so convenient) method is to create an ogc filter by double > clicking on the 'filter' column (enter ogc filter xml as a string in the > expression editor). > > Regards, > Marco > > > On 26.03.2015 16:11, G. Allegri wrote: > > Hi, > you probably read the question from Peter on qgis-user [1]. > Five years ago Marco said that this behaviour should have been changed > (first fetch based on current view extent) but AFAICS the WFS provider still > behaves the old way. > Was this proposal discarded for some reason? > > Giovanni > > [1]http://lists.osgeo.org/pipermail/qgis-user/2015-March/031354.html > [2] http://hub.qgis.org/issues/1421#note-4 > -- > Giovanni Allegri > http://about.me/giovanniallegri > Gis3W - http://gis3w.it > Ikare - http://ikare.it > Twitter: https://twitter.com/_giohappy_ > blog: http://blog.spaziogis.it > GEO+ geomatica in Italia http://bit.ly/GEOplus > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > -- > Dr. Marco Hugentobler > Sourcepole - Linux & Open Source Solutions > Weberstrasse 5, CH-8004 Zürich, Switzerland > [email protected] http://www.sourcepole.ch > Technical Advisor QGIS Project Steering Committee > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
