Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I would like to create a plugin using commercial software.

Does the QGis licence permit this?

Are there any restrictions on the licence I can choose to apply to my plugin?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Foreword : I think you mean «proprietary» and not «commercial». Any opensource product can be a commercial product, even GPL ones.

You can write plugins for QGIS in C++ or Python, the latter being advised, as it simplifies plugins distribution and deployment.

QGIS is licenced as GPL, and the Python bindings are GPL too. So is PyQT, which is used in QGIS Python modules.

Therefore, any plugin written for QGIS, linking to QGIS C++ library, or importing QGIS python modules or PyQT modules has to be GPL too.

If you want to create a plugin using proprietary software, you can only do it if the link between your plugin and the proprietary software is loose.

You cannot :

  • use a proprietary (or non-gpl compliant) python module in your plugin importing a qgis module
  • link (as in compilation link) your plugin (c++ or python) with any proprietary or non-gpl compliant library.

You can :

  • Execute an external application, whatever its licence, from your plugin, exchanging data through files for example

  • Call a webservice or a socket-based service to a proprietary server application

The FSF faq answers a lot of questions regarding the GPL and what you can do with it (or not) :

http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html

Especially :

http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#GPLInProprietarySystem

As for Python, the Plone project ( http://www.plone.org ) has made some licence research and states in its licence FAQ that importing a GPL python module leads you to have to licence your code as GPL :

http://plone.org/foundation/copyrights/license-faq

Note that having your code licenced under the GPL does NOT mean you must distribute it. But if you do, you have to provide the source code as GPL.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.