[Qgis-developer] QgsPluginLayer or custom renderer in QGIS Server

Alessandro Pasotti apasotti at gmail.com
Thu Feb 11 06:59:07 PST 2016


016-02-11 15:46 GMT+01:00 <kaotika at gmx.de>:

> Hi,
>
> I play around with the watermark plugin and changed the code according to
> https://github.com/sourcepole/qgis-watermark-plugin/issues/2. Now I can
> safe and load the plugin layer from the project file. If I open the project
> with the server the watermark layer doesn't show up in the GetCapabilities
> nor is it rendered to the output. Is it possible to use QgsPluginLayer or
> some other kind of curstom renderer in QGIS Server?
>


Python plugins are available on QGIS server, but since the server has its
own plugin interface, you must use a plugin that was specifically written
to use the QGIS server interface.

There is a watermark example plugin for the server available:
http://plugins.qgis.org/plugins/HelloServer/
The code of the watermark filter is here:
https://github.com/elpaso/qgis-helloserver/blob/master/filters/WatermarkFilter.py

Hope this helps.

-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160211/7babaf07/attachment.html>


More information about the Qgis-developer mailing list