[Qgis-developer] WFS-alike plugin with caching: approach? (Was WFS still fetches everything)

2015-04-13 Thread Stefan Keller
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 :
> 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
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
> --
> Dr. Marco Hugentobler
> Sourcepole -  Linux & Open Source Solutions
> Weberstrasse 5, CH-8004 Zürich, Switzerland
> marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
> Technical Advisor QGIS Project Steering Committee
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] STEM Plugin without repository

2015-04-13 Thread Luca Delucchi
On 13 April 2015 at 18:52, Paolo Cavallini  wrote:
> Il 12/04/2015 22:58, Luca Delucchi ha scritto:
>
>> The customers asked my to not publish the repo yet (before their first
>> test), but if it is a problem I can ask them...
>
> IMHO having a public bugtracker is the best way to have early testing.
> Trying a plugin, discovering a bug, and not finding a public method to
> open it is very frustrating, in my experience.
>

I know, but they ask my to wait some weeks before open it, they want
to test the plugin, report the issues their self and after when these
issues will be fixed release another version and open the repository
to everybody.

I think in more or less one month the repository will be open to everybody

> All the best.
>


-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] STEM Plugin without repository

2015-04-13 Thread Paolo Cavallini
Il 12/04/2015 22:58, Luca Delucchi ha scritto:

> The customers asked my to not publish the repo yet (before their first
> test), but if it is a problem I can ask them...

IMHO having a public bugtracker is the best way to have early testing.
Trying a plugin, discovering a bug, and not finding a public method to
open it is very frustrating, in my experience.

All the best.

-- 
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] qlr files and preservation of layerids

2015-04-13 Thread Andreas Neumann

Hi,

I have a scenario where I would like to use qlr files, but need the old 
layer ids preserved when I import them into the project. I see that in 
its current incarnation the layerid is not exported and hence also can't 
be imported.


The reasoning is that other projects link to layers into my projects 
(embedded layers and groups) and thus layer id preservation is 
important. In my projects I would need to replace some layers with qlr 
layers that have similar settings, but differ a bit. Thus the layer ids 
need to be preserved.


Could there be an option when exporting and/or importing the qlr files 
that would allow the preservation of the layer ids?


Thanks,
Andreas
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QGIS Server Python plugins docs

2015-04-13 Thread Alessandro Pasotti
Hello Jef,

Do you know if the new Python Plugin API for QGIS Server is available
online under qgis.org ?

I'd rather prefer linking to official online docs instead of my hosted copy:

http://www.itopen.it/qgis/serverplugins/api/

Can you maybe add it to the build? It was generated parsing the sip
files under /python/server

-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Raster Ramp color

2015-04-13 Thread jawensi
Hello. 

I am trying to change the simbology of a DEM raster using a default
pseudocolor ramp from the max and min height. How can I select the ramp and
define the settings of the classification in python? 

thank you



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Raster-Ramp-color-tp5201055.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer