Points To Polygons

Running programmatically

Converts a point data set to a polygon dataset. Attaches to the polygon attribute table the values of the attributes for the first and last point that form a single polygon

Inputs:

Outputs:

Notes:

Example: See the example for Points To Polylines function

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name PointsToPolygons
<input dataset> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<ID Field> A String - the name of the field which values will indicate the points used to form a single Polygon feature.
{Order Field} A String - the name of a Numeric (integer or double) field which values will indicate the order in which the points describe the polygons.If no Order field is used the order is defined by the record number of the points.
{Z Field} A String - the name of the field which values will be used for Z values of the vertices. "Features" can be used if the input points have Z.
{M Field} A String - the name of the field which values will be used for M values of the vertices. "Features" can be used if the input points have M.
{Link Field} A String - the name of a field to be used as a link between the input points and the output. The values for the first and last point that will form a single polyline will be added to the polyline attribute table.

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, "PointsToPolygons", "input dataset", "output dataset", "ID Field", "Order Field", "Z Field", "M Field","Link Field"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PointsToPolygons" "input dataset" "output dataset" "ID Field" "Order Field" "Z Field" "M Field" "Link Field"
.NET using ETGWOutX.dll PointsToPolygons(input dataset, output dataset, ID Field, Order Field, Z Field, M Field,Link Field)
ArcPy arcpy.PointsToPolygons(input dataset, output dataset, ID Field, "Order Field", "Z Field", M Field, Link Field)

Notes:

(Go to TOP)