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


IDistanceOp3.LeastCostPathAsPolyline Method (ArcObjects .NET 10.8 SDK)
ArcGIS Developer Help

IDistanceOp3.LeastCostPathAsPolyline Method

Calculates the least-cost path(s) from selected points in the input data and returns it as a polyline.

[Visual Basic .NET]
Public Function LeastCostPathAsPolyline ( _
    ByVal pDestinations As IGeoDataset, _
    ByVal distance As IGeoDataset, _
    ByVal backlink As IGeoDataset, _
    ByRef pValue As Integer, _
    ByRef pCost As Double _
) As IPolyline
[C#]
public IPolyline LeastCostPathAsPolyline (
    IGeoDataset pDestinations,
    IGeoDataset distance,
    IGeoDataset backlink,
    ref int pValue,
    ref double pCost
);
[C++]
HRESULT LeastCostPathAsPolyline(
  IGeoDataset* pDestinations,
  IGeoDataset* distance,
  IGeoDataset* backlink,
  System.Int32* pValue,
  System.Double* pCost
);
[C++]
Parameters
pDestinations [in]

pDestinations is a parameter of type IGeoDataset* distance [in]
distance is a parameter of type IGeoDataset* backlink [in]
backlink is a parameter of type IGeoDataset* pValue [out]
pValue is a parameter of type long* pCost [out]
pCost is a parameter of type double*

Product Availability

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

See Also

IDistanceOp3 Interface