[Qgis-developer] QEP: QGIS Mapserver Python Plugins

Marco Hugentobler marco.hugentobler at sourcepole.ch
Fri Aug 29 04:34:47 PDT 2014


>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/qgsconfig.h.in.
As an example, look at WITH_ORACLE and HAVE_ORACLE

Regards,
Marco


On 29.08.2014 12:06, Alessandro Pasotti wrote:
> 2014-08-29 11:56 GMT+02:00 Marco Hugentobler <marco.hugentobler at sourcepole.ch>:
>> 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 some interesting options
>> (expression functions in python, custom renderers, ...). Of course it needs
>> the possibility to turn python off for server.
>>
>> Regards,
>> Marco
>>
> Thank you Marco,
>
> I will be happy to hear about your testing results and I highly
> appreciate all advice that you can give me!
> I'm sure that there are many improvements that can be made to my
> hack-ish proof-of-concept implementation.
>
> 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?
>
>


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee



More information about the Qgis-developer mailing list