Determines the contributing area above a set of cells in a raster.
[Visual Basic .NET] Public Function Watershed ( _ ByVal directionRaster As IGeoDataset, _ ByVal sourceDataset As IGeoDataset _ ) As IGeoDataset
[C#] public IGeoDataset Watershed ( IGeoDataset directionRaster, IGeoDataset sourceDataset );
[C++]
HRESULT Watershed(
IGeoDataset* directionRaster,
IGeoDataset* sourceDataset,
IGeoDataset** Watershed
);
[C++]Parameters
directionRaster [in]directionRaster is a parameter of type IGeoDataset
sourceDataset [in]sourceDataset is a parameter of type IGeoDataset
Watershed [out, retval]Watershed is a parameter of type IGeoDataset
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.
Remarks
directionRaster |
an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor showing the direction of flow out of each cell This can be created using the IHydrologyOp::FlowDirection method. |
sourceDataset |
an input Raster, RasterDataset, RasterBand, or RasterDescriptor representing cells above which the contributing area, or catchment, will be determined All cells that are not NoData will be used as source cells. |
- The method returns a reference to a Raster object.
- Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.