Open Table of Contents

Closed Polylines To Polygons

Go to ToolBox Implementation Go to .NET Implementation

Converts closed polylines (and polyline chains) to polygons



Notes :


Source Polyline Layer

Result Polygon Layer
(no polyline chains used)

Result Polygon Layer
(closed polyline chains used)

Result Polygon Layer
(Build Polygon Wizard)

pl2pg_source.jpg (22220 bytes)

pl2pg_nochains.jpg (22278 bytes)

pl2pg_chains.jpg (22113 bytes)

pl2pg_build.jpg (22558 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPPolylineToPolygon <input_dataset> <out_feature_class> {force_closure} {tolerance}


Expression Explanation
<input_dataset> A Polygon 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)
 {force_closure} A Boolean indicating whether the non closed polylines must be closed and converted to polygons.
{tolerance} A Double setting the tolerance (in the units of the input dataset) to be used if the force_closure = True. If force_closure = 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

Scripting syntax

ET_GPPolylineToPolygon (input_dataset , out_feature_class, force_closure, tolerance)

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

.NET implementation
(Go to TOP)

PolylinesToPolygons(pInFC As IFeatureClass, sOutFName As String, Optional bForce As Boolean = False, Optional dTol As Double = 0) As IFeatureClass

Copyright Ianko Tchoukanski