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.
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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.