Snaps pour points to the cell of highest flow accumulation within a specified distance.
Usage tips
Command line and Scripting
-
The Snap Pour Point tool is used to ensure the selection of points of high accumulated flow when delineating drainage basins using the Watershed tool. Snap Pour Point will search within a snap distance around the specified pour points for the cell of highest accumulated flow and move the pour point to that location.
-
If the input raster or feature pour point data is a point feature class, it will be converted to a raster internally for processing.
-
The output is an integer raster when the original pour point locations have been snapped to locations of higher accumulated flow.
-
When there is only one input pour point location, the extent of the output is that of the accumulation raster. If there is more than one pour point location, the extent of the output is determined in the usual way (see Spatial Analyst analysis environment and Geoprocessing environment settings for more details).
-
The following environment settings affect this tool:
- General: Current Workspace, Scratch Workspace, Output Coordinate system, Output Extent, Snap Raster.
- Raster Storage: See the Raster Storage settings for the particular output raster format selected.
ArcObjects
-
The SnapPour method is used to ensure the selection of points of high accumulated flow when delineating drainage basins using the Watershed method. SnapPour will search within snapDistance around the specified pour points for the cell of highest accumulated flow and move the pour point to that location.
-
The accumulationRaster into ArcObjects is usually a Raster or RasterDataset that can be created using IHydrologyOp::FlowAccumulation.
-
The SourceDataset in ArcObjects can be a point feature or raster that represents point locations.
-
The output from the ArcObjects method is a temporary raster object. To save the raster permanently, use IRasterBandCollection::SaveAs method.