ET GeoWizards Scripting
Clean Dangling Nodes
(Go to the main page of the
function)
Cleans the dangling nodes from a polyline layer using user specified dangling tolerance
Syntax
Dim ET As New ETGW_Core
Set variable = ET.CleanDangles(pInFeatureClass, sOutFileName, dTol,
bNode, bNearest)
The CleanDangles 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) |
| dTol | Required. 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 |
| bNode | Required. A Boolean - if bNode = 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 dTol to an existing node) to the closest existing node. |
| bNearest | Required. A Boolean - if bNearest = 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 dTol to an existing polyline) to the closest point of the closest polyline |