Open Table of Contents

Clean Dangling Nodes

Go to ToolBox Implementation Go to .NET Implementation

Cleans the dangling nodes from a polyline layer using user specified dangling tolerance

Inputs:

Outputs:

Notes :

Examples:

Before Clean Dangles dangle_before.jpg (12313 bytes)
After Clean

No "Node Snap" or 'Nearest Snap" used

dangle_extend.jpg (10171 bytes)
After Clean

"Node Snap" used

dangle_node.jpg (10048 bytes)
After Clean

"Node Snap" and "Nearest Snap" used

dangle_nearest.jpg (9810 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPCleanDangle <input_dataset> <out_feature class> <dangling_tolerance> {closest_node_snap} {nearest_feature_snap}

Parameters

Expression Explanation
<input_dataset> A Polyline 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)
<dangling_tolerance> A Double representing the tolerance to be used. The polylines with dangling nodes within distance smaller than this value to existing features (depending on the options used) will be extended/snapped to the closest existing feature
{closest_node_snap} A Boolean - if  True, the ends of the dangling polylines that could not be snapped to an existing polyline by extending in the direction of the last segment will be snapped (if the dangling node is within a distance smaller than the <dangling_tolerance> to an existing node) to the closest existing node.
{nearest_feature_snap}  A Boolean - if  True, the ends of the dangling polylines that could not be snapped to an existing polyline by extending in the direction of the last segment or to an existing node will be snapped  (if the dangling node is within a distance smaller than the <dangling_tolerance>  to an existing polyline) to the closest point of the closest polyline

Scripting syntax

ET_GPCleanDangle (input_dataset, out_feature class, dangling_tolerance, closest_node_snap, nearest_feature_snap)

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

.NET implementation
(Go to TOP)

CleanDangles(pInFC As IFeatureClass, sOutFName As String, dDanglingTol As Double, Optional bClosestNode As Boolean = False, Optional bNearest As Boolean = False, Optional dFuzzy As Double = 0) As IFeatureClass

Copyright Ianko Tchoukanski