Vector Grid

Running programmatically

Creates a polyline or polygon vector grid using:

Inputs:

Outputs:

Notes:

Running Programmatically

(Go to TOP)

Two different functions are available for the Vector Grid creation

Vector Grid Extent

Parameters

Expression Explanation
Function Name VectorGridExtent
<output dataset> A String - the full name of the output layer.
<Grid Type> Required. A String indicating the type of the grid to be created. Valid values:
  • "Polygon"
  • "Polyline"
<Cell SizeX> A Double - the cell size in X direction.
<Cell SizeY> A Double - the cell size in Y direction.
<Extents From Reference> A Boolean indicating whether the extents of the grid will be taken from a reference dataset.
{Reference Dataset} A String - the full name of the reference dataset.
{MinX} A Double - minimum X of the extent.
{MinY} A Double - minimum Y of the extent.
{MaxX} A Double - maximum X of the extent.
{MinX} A Double - maximum Y of the extent.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "VectorGridExtent", "output dataset", "Grid Type", "Cell SizeX", "Cell SizeY", "Extents From Reference", "Reference Dataset"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "VectorGridExtent" "output dataset" "Grid Type" "Cell SizeX" "Cell SizeY" "Extents From Reference" "Reference Dataset"
.NET using ETGWOutX.dll VectorGridExtent(output dataset, Grid Type, Cell SizeX, Cell SizeY,Extents From Reference, Reference Dataset)
ArcPy arcpy.VectorGridExtent(output dataset, "Grid Type" , "Cell SizeX", "Cell SizeY", "Extents From Reference", "Reference Dataset")

(Go to TOP)

Vector Grid Origin

Parameters

Expression Explanation
Function Name VectorGridOrigin
<output dataset> A String - the full name of the output layer.
<Grid Type> Required. A String indicating the type of the grid to be created. Valid values:
  • "Polygon"
  • "Polyline"
<Cell SizeX> A Double - the cell size in X direction.
<Cell SizeY> A Double - the cell size in Y direction.
<Number Columns> An Integer - the number of columns to be created.
<Number Rows> An Integer - the number of rows to be created.
<Origin From Reference> A Boolean indicating whether the origin point of the grid will be taken from a reference dataset.
{Reference Dataset} A String - the full name of the reference dataset.
{Lower LeftX} A Double - X of the lower left corner of the extent.
{Lower LeftY} A Double - Y of the lower left corner of the extent.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "VectorGridOrigin", "output dataset", "Grid Type", "Cell SizeX", "Cell SizeY","Number Columns","Number Rows", "Origin From Reference", "Reference Dataset"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "VectorGridOrigin" "output dataset" "Grid Type" "Cell SizeX" "Cell SizeY" "Number Columns" "Number Rows" "Origin From Reference" "Reference Dataset"
.NET using ETGWOutX.dll VectorGridOrigin(output dataset, Grid Type, Cell SizeX, Cell SizeY,Number Columns, Number Rows, Origin From Reference, Reference Dataset)
ArcPy arcpy.VectorGridOrigin(output dataset, "Grid Type" , "Cell SizeX", "Cell SizeY", "Number Columns", "Number Rows", "Origin From Reference", "Reference Dataset")

Notes:

(Go to TOP)