This document is archived and information here might be outdated.  Recommended version.


IRasterAnalysisEnvironment.SetExtent Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoAnalyst)  

IRasterAnalysisEnvironment.SetExtent Method

Sets the type and values of extent in the RasterAnalysis.

[Visual Basic .NET]
Public Sub SetExtent ( _
    ByVal envType As esriRasterEnvSettingEnum, _
    [ByRef extentProvider As Object], _
    [ByRef snapRasterData As Object] _
)
[C#]
public void SetExtent (
    esriRasterEnvSettingEnum envType,
    ref object extentProvider,
    ref object snapRasterData
);
[C++]
HRESULT SetExtent(
  esriRasterEnvSettingEnum envType,
  Variant* extentProvider,
  Variant* snapRasterData
);
[C++]

Parameters envType [in]
envType is a parameter of type esriRasterEnvSettingEnum extentProvider [in, optional]
extentProvider is a parameter of type VARIANT* snapRasterData [in, optional]
snapRasterData is a parameter of type VARIANT*

Product Availability

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

Remarks

envType

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

esriRasterEnvMinOf � Intersection of Inputs - All input feature extents are intersected and the extent common to all is used as the extent values for the study area. This is the default.

esriRasterEnvMaxOf - Union of Inputs - All input feature extents are combined and the outer extent of the union is used.

esriRasterEnvValue - Value - User specified values for the Left, Right, Top and Bottom extent (x, y values) of the study area.

[extentProvider]

An envelope object supporting IEnvelope interface or RasterDataset that is used to provide the environment values of the analysis extent.

[snapRasterData]

A RasterDataset that can be used to snap all output raster datasets to the cell registration of the specified raster. All subsequent results will share the lower-left corner and cell size of the specified raster.

See Also

IRasterAnalysisEnvironment Interface

.NET Snippets

Create Grid From Feature Class

.NET Related Topics

GeoAnalyst | Working with the analysis environment