Voronoi diagram (Thiessen polygon)

This tool can be used to delineate the Voronoi diagram, sometimes known as Thiessen polygons, associated with a collection of vector points. Each polygon in the output vector coverage contains one point from the input vector file. All locations withint a polygon are closer to its contained point than any other point in the point set. Note that the Voronoi diagram is the dual of the Delaunay triangular irregular network (TIN) formed from the same point set. The user must specify the name of the input file, a shapefile that must be of a POINT or MULTIPOINT shape-type, and the name of the output file.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
args = [inputFile, outputFile]
pluginHost.runPlugin("VoronoiDiagram", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("VoronoiDiagram", args, false)

Credits: