Find Closest Point

Running programmatically

Calculates the distance for each point of a point dataset to the closest point from the same dataset. The function produces similar results as the Closest Feature Distance, but uses a robust algorithm and can be applied on datasets containing up to 8 million points.

Inputs:

Outputs:

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name FindClosestPoint
<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 maximum distance between two points to be considered neghbors - in the units of the spatial reference of the input dataset.

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

Notes:

(Go to TOP)