DK11 for Delphi | GisHydrology.TGIS_Hydrology.StreamToPolyline | Constructors | Methods | Events
Converts a stream network to polylines.
// Delphi public procedure StreamToPolyline( const _flowDir : TGIS_LayerPixel; const _streamsPix : TGIS_LayerPixel; const _extent : TGIS_Extent; const _streamsVec : TGIS_LayerVector; const _orderField : String = STREAM_POLYLINE_FIELD; const _threshold : Integer = STREAM_POLYLINE_THRESHOLD );
// C++ Builder public: void StreamToPolyline( TGIS_LayerPixel* const _flowDir, TGIS_LayerPixel* const _streamsPix, TGIS_Extent* const _extent, TGIS_LayerVector* const _streamsVec, const UnicodeString _orderField, const int _threshold );
Name | Type | Description |
---|---|---|
_flowDir | TGIS_LayerPixel | an input flow direction grid |
_streamsPix | TGIS_LayerPixel | an input grid representing a stream network |
_extent | TGIS_Extent | an extent to be processed |
_streamsVec | TGIS_LayerVector | the output vector layer |
_orderField | String | an optional numerical field from _streamsVec to populate stream network value (flow accumulation, or stream order value from grid); default parameter is empty string, this means that no attribute information is transferred to vector layer |
_threshold | Integer | use this property to limit processed cells from stream network; default parameter is 0 |
The stream network is represented by flow accumulation, or stream order grid. If the flow accumulation grid is used, recommended threshold is 1% of the maximum value from the flow accumulation grid.