Create hexagonal vector grid

This tool can be used to create a rectangular vector grid. The extent of the rectangular grid is based on the extent of a user-specified base file (either vector or raster). The user must also specify the origin of the grid (x and y coordinates) and the grid width in the x and y directions.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
baseFile = wd + "input.dep"
outputFile = wd + "output.shp"
originX = "0.0"
originY = "0.0"
widthX = "10.0"
widthY = "10.0"
args = [baseFile, outputFile, originX, originY, widthX, widthY]
pluginHost.runPlugin("CreateRectangularVectorGrid", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def baseFile = wd + "input.shp"
def outputFile = wd + "output.shp"
def originX = "0.0"
def originY = "0.0"
def widthX = "10.0"
def widthY = "10.0"
String[] args = [baseFile, outputFile, originX, originY, widthX, widthY]
pluginHost.runPlugin("CreateRectangularVectorGrid", args, false)

Credits: