DK11 for Delphi | GisHydrology.TGIS_Hydrology.FlowDirection | Constructors | Methods | Events
Generates a flow direction grid from a DEM.
// Delphi public procedure FlowDirection( const _dem : TGIS_LayerPixel; const _extent : TGIS_Extent; const _flowDir : TGIS_LayerPixel; const _resolveFlat : Boolean = FLOWDIR_RESOLVE_FLAT );
// C++ Builder public: void FlowDirection( TGIS_LayerPixel* const _dem, TGIS_Extent* const _extent, TGIS_LayerPixel* const _flowDir, const bool _resolveFlat );
Name | Type | Description |
---|---|---|
_dem | TGIS_LayerPixel | an input DEM |
_extent | TGIS_Extent | an extent to be processed |
_flowDir | TGIS_LayerPixel | the output grid layer |
_resolveFlat | Boolean | if True, the ResolveFlat tool is performed for remaining cells within flat areas, where the dominant direction can not be determined; if False, above mentioned cells have encoded the direction by summing direction codes of neighbors with the drop value equals 0; default parameter is False |
The flow direction for a cell is the direction water will flow out of the cell. It is encoded to correspond to the orientation of one of the eight cells that surround the cell as follows: