<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">With QGIS, a service can use any function in core/analysis library.</div>
Additionally, Python webservices might directly use qgis bindings and python<br>
plugin functionality by importing the relevant classes (correct me if I&#39;m<br>
wrong).<br>
Is there a use-case where it is necessary to manage the functionality by a<br>
central server instance?<br></blockquote><div><br></div><div>I don&#39;t know what exactly the python bindings could add to the Qgis Mapserver. I feel that we can already build a python server app using the already available Qgis bindings...</div>
<div>Well, things can be done in several (infinte?) different ways. Anyone can build its own service and deploy it, even using the Python Qgis bindings, avoiding the fcgi interface. I was thinking to a single gateway for the following reasons (which probably are strictly subjective):</div>
<div><br></div><div> - avoid forcing the use of Python to deploy the services, and let users/developers use a common fcgi interface. </div><div>As it is for Mapserver: you can use mapscripting, but you can call MS directly even for vendor specific requests (e.g. html templates). MS incorporates everything in a monolythic server, making it difficult to develop and deploy third-party features.</div>
<div><br></div><div> - have a single &quot;register&quot;, as it is in Geoserver. With Geoserver every extension registers itself, and expose functionalities and the kind of requests (key/value pairs) it can manage.</div>
<div><br></div><div>Anyway, the hypothesis 0 is to let eveyone build its own fcgi server, or python gateway ;)</div><div><br></div><div>giovanni</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Regards,<br>
Marco<br>
<br>
Am Freitag, 21. Oktober 2011, 12.07:21 schrieb G. Allegri:<br>
<div><div></div><div class="h5">&gt; 2011/10/21 Marco Hugentobler &lt;<a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi all<br>
&gt; &gt;<br>
&gt; &gt; It would be great to have a mapscript equivalent for QGIS server, so the<br>
&gt; &gt; possibility to modify the request before it arrives at QgsWMSServer<br>
&gt; &gt; class.<br>
&gt; &gt;<br>
&gt; &gt; &gt; GeoServer will provide WMS, WCS and WFS automatically for the data.<br>
&gt; &gt; &gt; That could also QGIS server do by default. But with the gateway<br>
&gt; &gt; &gt; interface QGIS could provide some custom services, maybe working<br>
&gt; &gt; &gt; properly only with some specific data.<br>
&gt; &gt;<br>
&gt; &gt; What would be the benefit of the gateway interface class compared to<br>
&gt; &gt; other services using FastCGI? E.g. if one want to build a WFS/WPS<br>
&gt; &gt; service with QGIS,<br>
&gt; &gt; the obvious solution would be to create qgis_wps_serv.fcgi or similar. Is<br>
&gt; &gt; it<br>
&gt; &gt; the idea to have shared service functionality on service level which is<br>
&gt; &gt; specific to QGIS services?<br>
&gt;<br>
&gt; I think that the main benefit would be having a single interface to manage,<br>
&gt; both on the side of fcgi configurations (eg Apache) and global, server,<br>
&gt; configurations.<br>
&gt; I imagine that one could expose some services depending on the overall<br>
&gt; configuration, or per user, or per domain, etc.<br>
&gt; Geoserver let services share functionalities, being &quot;beans&quot; managed by the<br>
&gt; server context available to any service. Anyway this could be a future<br>
&gt; feature (I suppose it would take not a small time to be designed and<br>
&gt; implemented), but having a single gateway opens to this possibility too.<br>
&gt;<br>
&gt; giovanni<br>
&gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Marco<br>
&gt; &gt;<br>
&gt; &gt; Am Donnerstag, 20. Oktober 2011, 22.54:30 schrieb Martin Dobias:<br>
&gt; &gt; &gt; On Thu, Oct 20, 2011 at 5:40 PM, G. Allegri &lt;<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt; 2011/10/20 Martin Dobias &lt;<a href="mailto:wonder.sk@gmail.com">wonder.sk@gmail.com</a>&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; On Thu, Oct 20, 2011 at 4:00 PM, G. Allegri &lt;<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; &gt; &gt;&gt; &gt; I imagine a plugin system, similar to Qgis Desktop, where every<br>
&gt; &gt; &gt; &gt;&gt; &gt; service is<br>
&gt; &gt; &gt; &gt;&gt; &gt; discovered/registered if available in certain library paths.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; I am not sure if such implicit (automatic) registration would be<br>
&gt; &gt; &gt; &gt;&gt; good. Imagine that you have several web services. You would like to<br>
&gt; &gt; &gt; &gt;&gt; run a public WMS server and also another bunch of services for a<br>
&gt; &gt; &gt; &gt;&gt; limited group of users. Having all the services available in both<br>
&gt; &gt; &gt; &gt;&gt; instances would not be very good - e.g. with a WMS server you may<br>
&gt; &gt; &gt; &gt;&gt; automatically provide WPS server.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Looking at similar architectures, Geoserver seems to work this way,<br>
&gt; &gt; &gt; &gt; leaving to a security/configuration layer to enable and control the<br>
&gt; &gt; &gt; &gt; availability of the extensions.<br>
&gt; &gt; &gt; &gt; Anyway, we can avoid an automatic discovering, and control their<br>
&gt; &gt;<br>
&gt; &gt; exposure<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; through a configuration system (eg a simple configurations file).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; GeoServer will provide WMS, WCS and WFS automatically for the data.<br>
&gt; &gt; &gt; That could also QGIS server do by default. But with the gateway<br>
&gt; &gt; &gt; interface QGIS could provide some custom services, maybe working<br>
&gt; &gt; &gt; properly only with some specific data.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Martin<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Qgis-developer mailing list<br>
&gt; &gt; &gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; &gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Dr. Marco Hugentobler<br>
&gt; &gt; Sourcepole -  Linux &amp; Open Source Solutions<br>
&gt; &gt; Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland<br>
&gt; &gt; <a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>
&gt; &gt; Technical Advisor QGIS Project Steering Committee<br>
<br>
<br>
--<br>
Dr. Marco Hugentobler<br>
Sourcepole -  Linux &amp; Open Source Solutions<br>
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland<br>
<a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>
Technical Advisor QGIS Project Steering Committee<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br>