Open Table of Contents

ET GeoWizards Scripting

Point To Polygon
(Go to the main page of the function)

Converts a point data set to a polygon feature class

Note: PointToPolygon method is obsolete. Use PointToPolygon2 method instead.

Syntax    

Dim ET As  New ETGW_Core
Set variable = ET.PointToPolygon2 (pInFeatureClass, sOutFileName, sIdFieldName, bUseOrder, sOrderFieldName, sLinkField, sMessage)

The PointToPolygon2 method syntax has the following object qualifier and arguments:

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object (Must be a Point feature class)
sOutFileName Required. A String - the full name of the output feature class (A feature class with the same full name should not exist)
sIdFieldName Required. A String -  the name (Case sensitive) of the field which values will indicate the points used to form a single polygon. 
bUseOrder Required. A Boolean  indicating whether the order in which the points describe the polygon will be taken from a field in the attribute table
sOrderFieldName Required. 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. This is ignored (can be set to any string) if bUseOrder = False
sLinkField Optional. A String - the name of the field of the point attribute table to be used as a link. The values for the first and last point that will form a single polyline will be added to the polyline attribute table.
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned

Example