[Qgis-developer] Re: Scripting QGIS from the outside using Python

Martin Dobias wonder.sk at gmail.com
Tue Mar 20 09:28:45 EDT 2012


On Tue, Mar 20, 2012 at 10:03 AM, Marco Hugentobler
<marco.hugentobler at sourcepole.ch> wrote:
> Hi Stefan
>
>
>>Yes and no. As you know, we have tried to do so and found that it's
>>very difficult for somebody other than the code author to add those
>>files.
>
> It is not easier for the C++ code author to create the bindings than for
> others.

Marco, I would disagree here.

Usually there are only few things that need to be sorted out in SIP
files, typically:
- input/output parameter annotations: In, Out
- ownership transfer annotations: Transfer, TransferBack, TransferThis, Factory
The c++ author knows the semantics - someone who just wants to use
that code does not. Ideally these things should be clear from doxygen
documentation. However sometimes the header is not that well
documented, so the person adding SIP files would need to look into the
code.

Anyway I do not expect from developers to make use of some advanced
SIP annotations that require writing some code with python/sip api.

Regards
Martin


More information about the Qgis-developer mailing list