This document is archived and information here might be outdated. Recommended version. |
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
);
[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
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. |