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


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

IHydrologyOp2.FlowDirection Method

Creates a raster of flow direction from each cell to it's steepest downslope neighbor.

[Visual Basic .NET]
Public Function FlowDirection ( _
    ByVal surfaceRaster As IGeoDataset, _
    ByVal createDrop As Boolean, _
    ByVal forceFlowAtEdge As Boolean _
) As IGeoDataset
[C#]
public IGeoDataset FlowDirection (
    IGeoDataset surfaceRaster,
    bool createDrop,
    bool forceFlowAtEdge
);
[C++]
HRESULT FlowDirection(
  IGeoDataset* surfaceRaster,
  VARIANT_BOOL createDrop,
  VARIANT_BOOL forceFlowAtEdge
);
[C++]
Parameters
surfaceRaster [in]

surfaceRaster is a parameter of type IGeoDataset* createDrop [in]
createDrop is a parameter of type bool forceFlowAtEdge [in]
forceFlowAtEdge is a parameter of type bool

Product Availability

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

Remarks

surfaceRaster a raster representing an elevation surface
createDrop a Boolean that if set to True an optional output raster will be created showing a ratio of the maximum change in elevation from each cell along the direction of flow, to the path length between centers of cells, expressed in percents
forceFlowAtEdge controls the direction of flow at the edges of the surface raster

If the Boolean is set to True then the maximum drop on the inside of an edge cell if greater than zero, the flow direction will be determined as usual; otherwise, the flow direction will be toward the edge. Cells that should flow from the edge of the surface grid inward will do so.

If set to False, all cells at the edge of the surface surface will flow outward from the surface surface.

 

See Also

IHydrologyOp2 Interface