ET GeoWizards Scripting
Point Distance
(Go to the main page of the function)
Calculates the distance for each point of a point layer to the closest feature from another layer (Point, Polyline or Polygon).
Syntax
Dim ET As New ETGW_Core
Set variable = ET.PointDistance(pInFeatureClass, pReferenceFeatureClass, _
sOutFileName, dSearchTol, pCalcSref)
The PointDistance method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | An IFeatureClass object |
| pInFeatureClass | Required. An IFeatureClass object (Must be a point feature class) |
| pReferenceFeatureClass | Required. An IFeatureClass object (Point, Polyline or Polygon feature class). |
| sOutFileName | Required. A String - the full name of the output feature class (A feature class with the same full name should not exist) |
| dSearchTol | Required. A Double representing the Search tolerance (in the units of the pCalcSref) to be used |
| pCalcSref | Required. A Spatial reference object which distance unit will be used for calculation. |