This document is archived and information here might be outdated.  Recommended version.

IDistanceOp2 Interface (ArcObjects .NET 10.8 SDK)
 ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > ID > IDistanceOp2 Interface
 ArcGIS Developer Help

# IDistanceOp2 Interface

#### Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

#### Members

Name Description
Corridor Calculates for each cell location the sum of the accumulative costs for two input accumulative-cost datasets.
CostAllocation Calculates for each output cell the zone that could be reached with the least accumulative cost.
CostBackLink Calculates the neighbor that is the next cell on the least-accumulative-cost path from a cell to a source cell.
CostDistance Calculates for each cell the least-accumulative-cost distance over a cost surface to a source cell or a set of source cells.
CostDistanceFull Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.
CostPath Calculates the least-cost path(s) from selected cell(s) in the input data to the closest source cell.
CostPathAsPolyline Calculates the least-cost path(s) from selected points in the input data and returns it as a polyline.
EucAllocation Calculates for each cell the zone of the closest source cell (in Euclidean distance).
EucDirection Calculates the direction in degrees from each cell center to the cell center of the closest source.
EucDistance Calculates for each cell the Euclidean distance to the closest source.
EucDistanceFull Calculates for each cell optionally the Euclidean distance, direction, and allocation to the closest source.
PathAllocation Calculates for each output cell the zone that could be reached with the least accumulative cost.
PathBackLink Calculates the neighbor that is the next cell on the least-accumulative-path path from a cell to a source cell.
PathDistance Calculates for each cell the least-accumulative-path distance over a path surface to a source cell or a set of source cells.
PathDistanceFull Calculates for each cell the least-accumulative-cost distance, backlink, and allocation over a cost surface to a source cell or a set of source cells.

#### Classes that implement IDistanceOp2

Classes Description
RasterDistanceOp A mechanism for performing distance operations on rasters.