Open Table of Contents

Point To Polygon

Go to ToolBox Implementation Go to .NET Implementation

Converts a point data set to a polygon feature class. 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 Point To Polyline function

ToolBox implementation
(Go to TOP)

Command line syntax 

ET_GPPointsToPolygons <input_dataset> <out_feature class> <polygonID_field> {Z_value_field} {M_value_field}  {order_field} {link_field}

Parameters

Expression Explanation
<input_dataset> A Point feature class or feature layer
<out_feature class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<polygonID_field>  A String -  the name (Case sensitive) of the field which values will indicate the points used to form a single polygon.
{Z_value_field} A String -  the name of the field which values will be used for Z values of the vertices. "Shape" can be used if the input points have Z.
{M_value_field} A String -  the name of the field which values will be used for M values of the vertices. "Shape" can be used if the input points have M.
{order_field} A String  - the name (Case sensitive) 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
{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.

Scripting syntax

ET_GPPointsToPolygons (input_dataset, out_feature class, polygonID_field, Z_value_field, M_value_field, order_field, link_field)

See the explanations above:
<> - required parameter
{} - optional parameter

.NET implementation
(Go to TOP)

PointsToPolygons(pInFC As IFeatureClass, sOutFName As String, sIdField As String, Optional sOrderField As String = "", Optional sZFieldName As String = "", Optional sMFieldName As String = "", Optional sLinkField As String = "") As IFeatureClass

Copyright Ianko Tchoukanski