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


IHydrologyOp.FlowAccumulation Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IH > IHydrologyOp Interface > IHydrologyOp.FlowAccumulation Method
ArcGIS Developer Help

IHydrologyOp.FlowAccumulation Method

Creates a raster of accumulated flow to each cell.

[Visual Basic .NET]
Public Function FlowAccumulation ( _
    ByVal directionRaster As IGeoDataset, _
    [ByRef weightRaster As Object] _
) As IGeoDataset
[C#]
public IGeoDataset FlowAccumulation (
    IGeoDataset directionRaster,
    ref object weightRaster
);
[C++]
HRESULT FlowAccumulation(
  IGeoDataset* directionRaster,
  Variant* weightRaster
);
[C++]
Parameters
directionRaster [in]

directionRaster is a parameter of type IGeoDataset* weightRaster [in, optional]
weightRaster is a parameter of type VARIANT*

Product Availability

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

Remarks

directionRaster a raster showing direction of flow out of each cell

This can be created using the IHydrologyOp::FlowDirection method.

[weightRaster] the weight to be assigned to each cell

If no [weightRaster] is specified, a default weight of one will be applied to each cell. For each cell in the output, the result will be the number of cells that flow into it. The data type for the weightRaster can be any Raster object that supports IGeoDataset (e.g., Raster, Raster band, etc.).

 

See Also

IHydrologyOp Interface