- the input dataset(s)
- the output extent environment setting
- the parameter extent of the tool (if it exists).
For ArcGIS 9.3, Snap Raster is a separate environment setting. It is no longer part of the output Extent.
The purpose of the snap raster is to adjust the extent so that the cells in the output raster align with the cells in the snap raster.
For a given snap raster and an extent (extent to be snapped), as shown in figure (a) below, the output extent is determined by adjusting the lower-left and upper-right corners.
The lower-left corner of the given extent is moved to the nearest snap raster cell corner in such a way that the new lower-left corner is outside of the given extent. If the lower-left corner of the given extent already coincides with a cell corner of the snap raster then no adjustment will be made. The upper-right corner of the given extent is moved to the nearest output raster cell corner in such a way that the new upper-right corner is outside of the given extent.
The cell alignment of the output raster can be visualized by considering the adjusted lower-left corner as the origin and drawing lines at an interval of output cell size parallel to horizontal and vertical axes. If the cell size of the output raster is same as the snap raster then the upper-right corner will end up coinciding with a cell corner of the snap raster as shown below in figure (b).
On the other hand, if the cell size of the output raster is smaller than the cell size of the snap raster then the upper right corner may not coincide with a cell corner of the snap raster as shown in figure (c). If the upper-left corner of the given extent already coincides with a cell corner of the output raster then no adjustment will be made.
If the upper-left corner of the given extent already coincides with a cell corner of the output raster then no adjustment will be made. Snapping usually results in a larger output extent than the given extent. The output raster may end up with an additional row or column, or both, as shown in figure (b). The cell value in the output raster depends on where the cell center falls on the input raster. In this example the left column and the top row in the output raster ended up being NoData because the cell centers of these cells fall outside on the input raster. A similar rule is applied when feature class is used as input.


