Open Table of Contents

Closest Feature Distance

Go to ToolBox Implementation Go to .NET Implementation

Calculates the distance for each feature of a dataset  to the closest feature from the same dataset (Point, Polyline or Polygon). The function is slow and can hang on large datasets. If the input dataset is a Point one,  we recommend using the Find Closest Point function added in version 11.1




ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPClosestFeatureDistance<input_dataset> <out_feature_class> <search_distance>


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)
<search_distance> A Double representing the maximum distance between the points within a cluster - in the units of the spatial reference of the input dataset

Scripting syntax

ET_GPClosestFeatureDistance(input_dataset,out_feature class, search_distance)

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

.NET implementation
(Go to TOP)

ClosestFeatureDistance(pInFC As IFeatureClass, sOutFName As String, dSearchTol As Double) As IFeatureClass

Copyright Ianko Tchoukanski