Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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

I've been looking to see if there was a way to call Voronoi Polygons function found in Vector/Geometry Tools, directly from the code but I have not found one. Does this currently exist? Is there a way to call these functions within python coding?

share|improve this question
this code may help you… – geogeek Apr 11 '13 at 22:59
Hmm, the code does offer some insight. However, what needs to be imported so the in-built functions like computeVoronoiDiagram() can be used? – NothingToSay Apr 12 '13 at 0:28
sorry i have never used this script, i've found it just by googling for you. – geogeek Apr 12 '13 at 0:32
Oh alright, thanks for the help. I'll tinker with it see if there is a way to make it work. – NothingToSay Apr 12 '13 at 0:40
cant you use the processing tool? i.e. grass:v.voronoi and qgis:voronoipolygons – BJEBN Oct 1 '13 at 15:32

BJEBN has suggested a function from the processing toolbox. Here's how to use it: As per

From the console you can get a list of all the algorithms available which contain the word "Voronoi" by typing:

import processing

Then you could find out how to use what appears the most appropriate function with:


Then simply use the algorithm in your script as follows:

share|improve this answer

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.