Connect Unstructured Points

Running programmatically

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:

Outputs:

Notes:

Examples:

Source Points

source

Result - Avoid Loops = False

res1

Result - Avoid Loops = True

avoid

Tolerance 1

result large

Tolerance 2

result small

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ConnectUnstructuredPoints
<input dataset> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<CutOff Distance> A Double representing the CutOff Distance( in the units of the spatial reference of the input dataset).
{Avoid Loops} A Boolean. If TRUE the algorithm will try to remove the loops created by connecting to closest neighbor

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "ConnectUnstructuredPoints", "input dataset", "output dataset", "CutOff Distance", "Avoid Loops"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "ConnectUnstructuredPoints" "input dataset" "output dataset" "CutOff Distance" "Avoid Loops"
.NET using ETGWOutX.dll ConnectUnstructuredPoints(input dataset, output dataset, CutOff Distance, Avoid Loops)
ArcPy arcpy.ConnectUnstructuredPoints(input dataset, output dataset, "CutOff Distance", "Avoid Loops")

Notes:

(Go to TOP)