Snaps selected pour points to the cell of highest flow accumulation within a specified distance.
[Visual Basic .NET] Public Function SnapPourPoint ( _ ByVal sourceDataset As IGeoDataset, _ ByVal accumulationRaster As IGeoDataset, _ ByVal snapDistance As Double _ ) As IGeoDataset
[C#] public IGeoDataset SnapPourPoint ( IGeoDataset sourceDataset, IGeoDataset accumulationRaster, double snapDistance );
[C++]
HRESULT SnapPourPoint(
IGeoDataset* sourceDataset,
IGeoDataset* accumulationRaster,
double snapDistance,
IGeoDataset** SnapPourPoint
);
[C++]Parameters
sourceDataset [in]sourceDataset is a parameter of type IGeoDataset
accumulationRaster [in]accumulationRaster is a parameter of type IGeoDataset
snapDistance [in] snapDistance is a parameter of type double SnapPourPoint [out, retval]SnapPourPoint is a parameter of type IGeoDataset
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.
Remarks
sourceDataset | an input Raster, RasterDataset,
RasterBand, or RasterDescriptor or FeatureClass,
FeatureClassDescriptor of cells to be used as pour points
Cells that are not NoData will be considered pour points and will be snapped. |
accumulationRaster | a Raster of accumulated flow, created with the IHydrology::FlowAccumulation method. |
snapDistance | the maximum distance in map units, to
search for a cell of higher accumulated flow
A common snap distance is zero, the same as if SnapPourPoint was not used. |
- 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.