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


IDistanceOp3.CostPathAsPolyline2 Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IDistanceOp3.CostPathAsPolyline2 Method

Calculates the least-cost path(s) from selected cell(s) in the input data to the closest source cell. Generates results as polylines in the specified empty existing fc

[Visual Basic .NET]
Public Sub CostPathAsPolyline2 ( _
    ByVal pTC As ITrackCancel, _
    ByVal fromData As IGeoDataset, _
    ByVal distance As IGeoDataset, _
    ByVal backlink As IGeoDataset, _
    ByVal pathType As esriGeoAnalysisPathEnum, _
    ByVal pOutFC As IFeatureClass _
)
[C#]
public void CostPathAsPolyline2 (
    ITrackCancel pTC,
    IGeoDataset fromData,
    IGeoDataset distance,
    IGeoDataset backlink,
    esriGeoAnalysisPathEnum pathType,
    IFeatureClass pOutFC
);
[C++]
HRESULT CostPathAsPolyline2(
  ITrackCancel* pTC,
  IGeoDataset* fromData,
  IGeoDataset* distance,
  IGeoDataset* backlink,
  esriGeoAnalysisPathEnum pathType,
  IFeatureClass* pOutFC
);
[C++]

Parameters pTC [in]
pTC is a parameter of type ITrackCancel* fromData [in]
fromData is a parameter of type IGeoDataset* distance [in]
distance is a parameter of type IGeoDataset* backlink [in]
backlink is a parameter of type IGeoDataset* pathType [in]
pathType is a parameter of type esriGeoAnalysisPathEnum pOutFC [in]
pOutFC is a parameter of type IFeatureClass*

Product Availability

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

See Also

IDistanceOp3 Interface