Click or drag to resize

GM_UtilityGenerateWatershed Method

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

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
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: GlobalMapper.TypesGM_LayerList_t
IN: List of layers to drape on top of terrain or NULL for all
aWatershedParams
Type: GlobalMapper.TypesGM_WatershedParams_t
IN: Parameters for generating watershed
aStreamLayer
Type: GlobalMapper.TypesGM_Layer_t
OUT: Created stream layer
aDrainageAreaLayer
Type: GlobalMapper.TypesGM_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