Go to ET GeoWizards 12.x User Guide

Connect Unstructured Points

Go to ToolBox Implementation

Connects each point of a point dataset to its closest neighbors to create polylines. The function does not require attributes that define which points should pertain to a single polyline or order of the points within the polylines (if your point data has such attributes use the Point To Polyline function instead). The function uses a robust algorithm and can be applied on datasets containing up to 2 million points.

Inputs:

• A Point feature layer
• Cutoff distance - the maximum distance to search for neighbor points.
• Avoid Loops option (see notes and examples below)

Outputs:

• A new  Polyline feature class.

Notes:

• If the distance from a point to the closest point is larger than the Cutoff distance then no link will be created between the two points
• If there are coincident points in the input dataset, the duplicates will be ignored.
• If the Avoid Loops option is not selected each point will be connected to its 2 closest neighbors (provided that the distance between the point and the neighbors is less than the Cutoff distance)
• If the Avoid Loops option is selected, the function will try to create longest non intersecting polyline possible.

Examples:

 Source Points Result - Avoid Loops NOT selected Result - Avoid Loops selected

Command line syntax

ET_GPConnectUnstructuredPoints<input_dataset> <out_feature class> <cut_off>{avoid_loops}

Parameters

Expression Explanation
<input_dataset> A Point,  Polyline or 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)
<cut_off> A Double representing the maximum distance between two points to be considered neghbors - in the units of the spatial reference of the input dataset
{avoid_loops} A Boolean indicating whether the function will try to avoid loops when connecting the points (see example above).

Scripting syntax

ET_GPConnectUnstructuredPoints(input_dataset,out_feature class, cut_off,avoid_loops)

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