[Qgis-developer] Vector Layer and geojson protocol - bbox parameter ?

kimaidou kimaidou at gmail.com
Mon Apr 23 16:13:47 EDT 2012


Hi list,

I would like to use Qgis to dynamically see the data provided by a custom
web service. This webservice excepts a "bbox" parameter and sends back a
geojson containing features availables for this bounding box.
Using the "protocol" option of "Opening Qgis Vector Layer" dialog, I can
pass a complete url, e.g. :
http://localhost/index.php?query=getFeature&bbox=2.2175,48.7896,2.4764,48.928
But obviously, Qgis only gets the features contained in the defined bbox. I
would like to find a way to "tell" Qgis to dynamically set the bbox
parameter on each zoom/pan, etc.
Is there a way to do so programatically, such as with python snippet ? I
think using a memory layer will be one of the first step, but I have no
idea how to go further.
By the way, I do not need a complex feature management, such as feature
cache, etc. Refresh the whole layer on zoom/pan (destroy all features and
get new ones) will do the job.


Thanks for any hint

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120423/714394af/attachment.html


More information about the Qgis-developer mailing list