GM_UtilityGenerateWatershed Method
Performs a watershed/drainage/stream calculation based on the provided elevation layer(s) (not implemented on WinCE)

Namespace:  GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
public static GM_Error_t32 GenerateWatershed(
	GM_LayerList_t aLayerList,
	GM_WatershedParams_t aWatershedParams,
	out GM_Layer_t aStreamLayer,
	out GM_Layer_t aDrainageAreaLayer,
	Object aReserved
)

Parameters

aLayerList
Type: GlobalMapperGM_LayerList_t
IN: List of layers to drape on top of terrain or NULL for all
aWatershedParams
Type: GlobalMapperGM_WatershedParams_t
IN: Parameters for generating watershed
aStreamLayer
Type: GlobalMapperGM_Layer_t
OUT: Created stream layer
aDrainageAreaLayer
Type: GlobalMapperGM_Layer_t
OUT: Created drainage area layer (if created)
aReserved
Type: SystemObject
IN: Reserved for later use, must be IntPtr.Zero

Return Value

Type: GM_Error_t32
A GM Error Code
See Also