Open Table of Contents

ET GeoWizards Toolbox

Point Distance
(Go to the main page of the function)

Calculates the distance for each point of a point dataset  to the closest feature from another dataset (Point, Polyline or Polygon)

Command line syntax

ET_GPPointDistance <input_dataset> <Reference_dataset> <out_feature class> <search_tolerance> {calc_spatial_reference}

Parameters

Expression Explanation
<input_dataset> A Point feature class or feature layer
<Reference_dataset> A Point,Polyline or Polygon feature class or feature layer.
NOTE: The <Reference_dataset> and the <input_dataset> can be the same point dataset. In this case to each point will be assigned the distance to the closest point from the same dataset.
<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_tolerance> A Double representing  the Search tolerance (in the units of the calc_spatial_reference) to be used
{calc_spatial_reference} The spatial reference in which the calculations will be performed. If not specified the spatial reference of the input dataset will be used.
NOTE: The spatial references of the <input_dataset>, <Reference_dataset> and {calc_spatial_reference} must have the same Geographic Coordinate System

Scripting syntax

ET_GPPointDistance (input_dataset, Reference_dataset, out_feature class, search_tolerance, calc_spatial_reference)

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