Go to ET GeoWizards 12.x User Guide

Connect To Closest Point

Go to ToolBox Implementation

Creates an output polyline feature class with single segmented polylines that connect each point of the input Point feature class to it's closest neighbor. The function uses a robust algorithm and can be applied on datasets containing up to 2 million points.

Inputs:

Outputs:

Notes:

Examples:

NoDups

Result Dataset  - Add Duplicate Links option NOT selected

  • The closest point to point 8 is point 10.

  • The closest point to point 10 is point 8

Only one link is added - from point 8 to point 10

 

dups

Result Dataset  - Add Duplicate Links option selected

  • The closest point to point 8 is point 10.

  • The closest point to point 10 is point 8

Two coincident links are added

  • from point 8 to point 10

  • from point 10 to point 8

 

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPConnectToClosestPoint<input_dataset> <out_feature class> <cut_off>{add_duplicate_links}

Parameters

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
{add_duplicate_links} A Boolean indicating whether duplicate links to be added to the output or not.

Scripting syntax

ET_GPConnectToClosestPoint(input_dataset,out_feature class, cut_off,add_duplicate_links)

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

Copyright © Ianko Tchoukanski