Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Pirmin Kalberer
Hi Alessandro, Am Donnerstag, 28. August 2014, 14.49:47 schrieb Alessandro Pasotti: > > as anticipated to some of you during the last HF, I've started to add > Python plugins support for the server side. > > The rationale behind server plugins is doublefold: first they could > provide additional

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 10:24 GMT+02:00 Pirmin Kalberer : > Hi Alessandro, > > Am Donnerstag, 28. August 2014, 14.49:47 schrieb Alessandro Pasotti: >> >> as anticipated to some of you during the last HF, I've started to add >> Python plugins support for the server side. >> >> The rationale behind server plugins

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Andrea Peri
I guess the main goal is to avoid that the adopt of python on server could slow it. Infact , the main difference from a desktop and a server is that the first is serving only one perosn and this mean that the user could wait also for a work for himself. Instead a server is used from many users and

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Paolo Cavallini
Il 29/08/2014 11:41, Andrea Peri ha scritto: > I guess the main goal is to avoid that the adopt of python on server > could slow it. Hi Andrea, In the first case I imagine (executing Processing modules or models as WPS services), the overhead will be minimal, as all the heavy computation is run b

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 11:41 GMT+02:00 Andrea Peri : > I guess the main goal is to avoid that the adopt of python on server > could slow it. > > Infact , the main difference from a desktop and a server is that the > first is serving only one perosn and this mean that the user could > wait also for a work for h

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Marco Hugentobler
Hi Alessandro Thanks for this interesting input. I'm happy to look at it in detail, but need a bit of time to review it and think about it thoroughly. Also I'd like to do some testing (e.g. run some of my internal server benchmarks here). As a fery first 2c: Python on the server can open som

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 11:56 GMT+02:00 Marco Hugentobler : > Hi Alessandro > > Thanks for this interesting input. I'm happy to look at it in detail, but > need a bit of time to review it and think about it thoroughly. Also I'd like > to do some testing (e.g. run some of my internal server benchmarks here). > >

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Jürgen E . Fischer
Hi Pirmin, On Fri, 29. Aug 2014 at 10:24:00 +0200, Pirmin Kalberer wrote: > This looks like the first real case for an RFC! I'm quite sceptical adding > Python to QGIS server. In my opinion this should be discussed thoroughly > first. I recently spend some time exploring the server side expeciall

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Andrea Peri
Hi Poalo, How you can say that the overhead should be minimal. ? :)) However surely best ifthe python on server is optional in compiling. So if an user dont want it should remove it. A. 2014-08-29 11:45 GMT+02:00 Paolo Cavallini : > Il 29/08/2014 11:41, Andrea Peri ha scritto: >> I guess the m

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Paolo Cavallini
Il 29/08/2014 12:09, Andrea Peri ha scritto: > Hi Poalo, > > How you can say that the overhead should be minimal. Because in that case Python does almost nothing, just passing the command to GDAL, SAGA, GRASS, or whatever. All the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS:

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Andrea Peri
The startuptime increase if iT should lo ad the python environment. All the best. Il 29/ago/2014 12:13 "Paolo Cavallini" ha scritto: > Il 29/08/2014 12:09, Andrea Peri ha scritto: > > Hi Poalo, > > > > How you can say that the overhead should be minimal. > > Because in that case Python does alm

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread G. Allegri
2014-08-29 12:23 GMT+02:00 Andrea Peri : > The startuptime increase if iT should lo ad the python environment. > > All the best. > The startup will happen only the first time, unless you use CGI and not FCGI. Anyway, I proposed it a couple of years ago, but many told it was useless for various re

[Qgis-developer] Getting the current QgsComposerView in an expression builder user function

2014-08-29 Thread Alexandre Neto
Hello, I'm working in a user function for expression builder to retrieve a x and y values of a map extents in a print composer. The idea is to be able to use it in label to label the map corners. I know I can get all active (opened) composers by doing: composers = iface.activeComposers() It giv

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Andrea Peri
OS the python usable in a fcgi environment ? This mean to load and lock an instante of python forma every fcgi session (almost 40-60 afaik) ? A. Il 29/ago/2014 12:47 "G. Allegri" ha scritto: > > > > 2014-08-29 12:23 GMT+02:00 Andrea Peri : > >> The startuptime increase if iT should lo ad the p

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Marco Hugentobler
A quick question: python plugins only add an #include and two lines of code in qgis_map_serv.cpp, a #ifdef SERVERPLUGINS block should be enough to disable them completely, where should I add that option to let cmake know about it? You can make an entries in CMakeLists.txt and in cmake_templates

[Qgis-developer] Performing buffering with script in PyQGIS

2014-08-29 Thread marco.olive...@libero.it
I wrote a script that performs the intersection of two layers: -the first Layer-> layer1 represents the rivers -the second Layer-> layer2, represents a set of circular dots distributed in a geographical area (at each point corresponds to a numeric value that exceeds a threshold value) The r

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 13:34 GMT+02:00 Marco Hugentobler : >> A quick question: python plugins only add an #include and two lines of >> code in qgis_map_serv.cpp, a #ifdef SERVERPLUGINS block should be >> enough to disable them completely, where should I add that option to >> let cmake know about it? > > > You

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Andrea Peri
Another question. Is about the security of the environment. I don't know too well the possibility of python in a qgis project. But I fear that a qgis project could have some python code to start ad startup of the qgis project. This mean that the same code should be run in the server when it start

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 15:13 GMT+02:00 Andrea Peri : > Another question. > Is about the security of the environment. > > I don't know too well the possibility of python in a qgis project. > But I fear that a qgis project could have some python code to start ad > startup of the qgis project. > This mean that th

Re: [Qgis-developer] Performing buffering with script in PyQGIS

2014-08-29 Thread Rush_Hendrix
At my previous post I would like to add a picture to give an idea of how I would like my new geometry produced by the intersection + buffering. The image is the following -- View this message in context: http://osg

Re: [Qgis-developer] Performing buffering with script in PyQGIS

2014-08-29 Thread Rush_Hendrix
At my previous post I would like to add a picture to give an idea of how I would like my new geometry produced by the intersection + buffering. The picture is the following: -- View this message in context: http://o

Re: [Qgis-developer] qgis server can't enable logging

2014-08-29 Thread kimaidou
Hi, I tried to use this environnement variable as well, but I cannot set the log file as /var/log/apache2/QGIS_Server.log , even if I chmod and chown it to give Apache full rights : ls -lh /var/log/apache2/QGIS_Server.log -rwxrwxrwx 1 www-data www-data 0 août 29 15:49 /var/log/apache2/QGIS_Serve

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread René-Luc Dhont
Hi Alessandro Thanks for this interesting input. I'm happy to test it and to develope some use case. I thought it's a good feature and can help to enhance QGIS-Server easily : WPS, WMTS, Table Join Service, WFS2 or other that OGC does not already know. Regards, René-Luc Le 28/08/2014 14:49,

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 16:39 GMT+02:00 René-Luc Dhont : > Hi Alessandro > > Thanks for this interesting input. > I'm happy to test it and to develope some use case. > I thought it's a good feature and can help to enhance QGIS-Server easily : > WPS, WMTS, Table Join Service, WFS2 or other that OGC does not alre

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread René-Luc Dhont
Le 29/08/2014 16:54, Alessandro Pasotti a écrit : 2014-08-29 16:39 GMT+02:00 René-Luc Dhont : Hi Alessandro Thanks for this interesting input. I'm happy to test it and to develope some use case. I thought it's a good feature and can help to enhance QGIS-Server easily : WPS, WMTS, Table Join Se

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Alessandro Pasotti
2014-08-29 18:05 GMT+02:00 René-Luc Dhont : > > Le 29/08/2014 16:54, Alessandro Pasotti a écrit : > >> 2014-08-29 16:39 GMT+02:00 René-Luc Dhont : >>> >>> Hi Alessandro >>> >>> Thanks for this interesting input. >>> I'm happy to test it and to develope some use case. >>> I thought it's a good featu

Re: [Qgis-developer] QEP: QGIS Mapserver Python Plugins

2014-08-29 Thread Larry Shaffer
Hi Jürgen, On Fri, Aug 29, 2014 at 4:08 AM, Jürgen E. wrote: > Hi Pirmin, > > On Fri, 29. Aug 2014 at 10:24:00 +0200, Pirmin Kalberer wrote: > > This looks like the first real case for an RFC! I'm quite sceptical > adding > > Python to QGIS server. In my opinion this should be discussed thorough