Open Table of Contents

Find Closest Point

Go to ToolBox Implementation Go to .NET Implementation

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 2 million points.




ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPFindClosestPoint<input_dataset> <out_feature class> <cut_off>


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

Scripting syntax

ET_GPFindClosestPoint(input_dataset,out_feature class, cut_off)

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

.NET implementation
(Go to TOP)

FindClosestPoint(pInFC As IFeatureClass, sOutFName As String, dCutOff As Double) As IFeatureClass

Copyright Ianko Tchoukanski