ArcObjects Library Reference (GeoAnalyst)  

IRasterAnalysisEnvironment.SetCellSize Method

Sets the type and value of cell size in the RasterAnalysis.

[Visual Basic .NET]
Public Sub SetCellSize ( _
    ByVal envType As esriRasterEnvSettingEnum, _
    [ByRef cellSizeProvider As Object] _
)
[C#]
public void SetCellSize (
    esriRasterEnvSettingEnum envType,
    ref object cellSizeProvider
);
[C#]

Optional Values

cellSizeProvider   To indicate that this parameter is undefined, first define a variable object Missing = Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT SetCellSize(
  esriRasterEnvSettingEnum envType,
  VARIANT* cellSizeProvider
);
[C++]

Parameters

envType [in]

  envType is a parameter of type esriRasterEnvSettingEnum

cellSizeProvider [optional]   cellSizeProvider is a parameter of type VARIANT

  To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

envType

An enumeration type specifying the raster cellsize environment settings for analysis.  All subsequent results will be to the value specified. It can be of type

esriRasterEnvMaxOf The largest cell size of all input raster datasets that are specifed in the function. This is the default. 

This option is not suitable for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only inputs. Use esriRasterEnvValue instead.

esriRasterEnvMinOf - Smallest cell size of all input raster datasets.

This option is not suitable for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only inputs. Use esriRasterEnvValue instead

esriRasterEnvValue - Any user specified value for the cell size. 

Use this option to specify a particular value for a cell size or for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only input.

[cellSizeProvider]

A specified value (double) or RasterDataset that is used to provide the cellsize environment value.

 

See Also

IRasterAnalysisEnvironment Interface

.NET Snippets

Create Grid From Feature Class |

.NET Related Topics

GeoAnalyst | Performing a spatial analysis operation using objects | Working with the analysis environment |