Open Table of Contents

ET GeoWizards Scripting

Closed Polylines To Polygons
(Go to the main page of the function)

Converts closed polylines (and polyline chains) to polygons

Syntax

Dim ET As  New ETGW_Core
Set variable = ET.PolylineToPolygon(pInFeatureClass, sOutFileName, bForseClosure, dTolerance,
{sMessage})

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

Part Description
variable An IFeatureClass object
pInFeatureClass Required. An IFeatureClass object. Must be a polyline 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)
bForseClosure Required. A Boolean indicating whether the non closed polylines must be closed and converted to polygons. 
dTolerance Optional. A Double setting the tolerance (in the units of the input dataset) to be used if the bForseClosure = True. If bForseClosure = False this parameter is ignored. Open polylines which end points are closer to each other than this tolerance will be closed and converted to polygons
sMessage Optional. In a case of failure -  description of the cause. If the functions completes with success an empty string will be returned. 

Example