Generate

Running programmatically

Inputs:

Outputs:

Notes:

File formats:

The shapes that have Z or M values will have an additional coordinate

Shape Type Standard Format Example Extended Format Example
Point
PointZ
PointM
id,x,y
id,x,y
id,x,y
END
1,34.5,-14.3
2,12.8,-19.6
3,13.4,-25.6
END
ID,X,Y,FIELD,FIELD
id,x,y,value,value
id,x,y,value,value
id,x,y,value,value
END
ID,X,Y,Town,Population
1,34.5,-14.3,London,44
2,12.8,-19.6,Paris,34
3,13.4,-25.6,Madrid,56
END
Polyline
PolylineZ
PolylineM
id
x,y
x,y
END
id
x,y
x,y
x,y
END
END
1
34.5,-14.3
12.8,-19.6
END
2
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
ID,FIELD,FIELD
id,value,value
x,y
x,y
END
id,value,value
x,y
x,y
x,y
END
END
ID,Street,Streettype
1,Church,Street
34.5,-14.3
12.8,-19.6
END
2,Second,Avenue
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
Polygon
PolygonZ
PolygonM
id,xLabel,yLabel
x,y
x,y
x,y
END
id
x,y
x,y
x,y
END
END
1, 12.5,-18,6
34.5,-14.3
12.8,-19.6
12.43,-19.88
END
2,14.3,24.5
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
ID,FIELD,FIELD
id,value,value
x,y
x,y
x,y
END
id,value,value
x,y
x,y
x,y
END
END
ID,X,Y, Dam,Volume
1,12.5,-18,6,Vaal,5346
34.5,-14.3
12.8,-19.6
12.43,-19.88
END
2,14.3,24.5,Gariep,6578
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
Box id,xmin,ymin,xmax,ymax
id,xmin,ymin,xmax,ymax
id,xmin,ymin,xmax,ymax
END
1,34.5,-14.3,34.8,-14.1
2,12.8,-19.6,12.9,-19.2
3,13.4,-25.6,13.6,-25.4
END
ID,XMIN,YMIN,XMAX,YMAX,FIELD
id,xmin,ymin,xmax,ymax,value
id,xmin,ymin,xmax,ymax,value
id,xmin,ymin,xmax,ymax,value
END
 

Running Programmatically

(Go to TOP)

Two different functions are available for the Vector Grid creation

Vector Grid Extent

Parameters

Expression Explanation
Function Name PointGridExtent
<output dataset> A String - the full name of the output layer.
<Shape Type> Required. A String indicating the type of the grid to be created. Valid values:
  • "Triangle"
  • "Square"
  • "Rectangle"
<Has Attributes> A Double - the cell size in X direction.
<Has Z> 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, "PointGridExtent", "output dataset", "Shape Type", "Has Attributes", "Has Z", "Extents From Reference", "Reference Dataset"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PointGridExtent" "output dataset" "Shape Type" "Has Attributes" "Has Z" "Extents From Reference" "Reference Dataset"
.NET using ETGWOutX.dll PointGridExtent(output dataset, Shape Type, Has Attributes, Has Z,Extents From Reference, Reference Dataset)
ArcPy arcpy.PointGridExtent(output dataset, "Shape Type" , "Has Attributes", "Has Z", "Extents From Reference", "Reference Dataset")

(Go to TOP)

Vector Grid Origin

Parameters

Expression Explanation
Function Name Generate
<input file> A String - the full name of the input text file.
<output dataset> A String - the full name of the output layer.
<Shape Type> Required. A String indicating the shape type of the data in the text file. Valid values:
  • "Point"
  • "Polyline"
  • "Polygon"
  • "Box"
  • "Line"
<Has Attributes> A Boolean indicating whether the input data contains attributes.
{Has Z} A Boolean indicating whether the input data has Z values.
{Has M} A Boolean indicating whether the input data has M valuess.
{Reference Dataset} A String - the full name of the reference dataset.
{Force Closure} A Boolean indicating whether to close unclosed polygons (only if the Shape Type = "Polygon").

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, "Generate","input file", "output dataset", "Shape Type", "Has Attributes", "Has Z","Has M", "Reference Dataset", "Force Closure"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "Generate" "input file" "output dataset" "Shape Type" "Has Attributes" "Has Z" "Has M" "Reference Dataset" "Force Closure"
.NET using ETGWOutX.dll Generate(input file, output dataset, Shape Type, Has Attributes, Has Z,Has M, Reference Dataset,Force Closure)
ArcPy arcpy.Generate(input file, output dataset, "Shape Type" , "Has Attributes", "Has Z", "Has M", "Reference Dataset",Force Closure)

Notes:

(Go to TOP)