Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to access QGIS plugins in Python? I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the Road graph plugin. The latter is probably a different can of worms because it is a C++ rather than Python plugin.

share|improve this question

If you know the python module for the plugin you can just run a import in the python console For example:

from fTools import somemodule

Then you can do somemodule.methodcall(). You will have to make sure, by looking at the code of the plugin, that it doesn't rely on any of it gui stuff. Otherwise you might get a nice UI pop up when you don't want it.

But yes it's possible.

share|improve this answer
Thanks! I'm guessing that this won't work for C++ plugins, though, unless someone's created a python binding. – mattwigway Jun 18 '11 at 14:53
Yeah not much you can do with C++ plugins unless someone has made a python binding. – Nathan W Jun 19 '11 at 2:21

Your Answer


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.