Connect Points

Running programmatically

Connects with lines each point from a point dataset to every other point from the same dataset that is closer to the point than the user defined cut off distance.

Inputs:

Outputs:

Notes:

Example:

The angle is calculated in North Azimuth direction

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ConnectPoints
<input dataset> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<Number Neighbours> An Integer representing the maximum number of points to connect to each point.
{CutOff Distance} A Double representing the maximum distance to a neighbor to be connected. The units of the tolerance are the units of spatial reference of the input dataset.
{Add Duplicates} A Boolean indicating whether duplicate lines will be added to the output.

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, "ConnectPoints", "input dataset",  "output dataset", "Number Neighbours", "CutOff Distance", "Add Duplicates"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "ConnectPoints" "input dataset"  "output dataset" "Number Neighbours" "CutOff Distance"  "Add Duplicates" 
.NET using ETGWOutX.dll ConnectPoints(input dataset, output dataset, Number Neighbours, CutOff Distance, Add Duplicates)
ArcPy arcpy.ConnectPoints(input dataset, output dataset, Number Neighbours, CutOff Distance,Add Duplicates)

Notes:

(Go to TOP)