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


IExtractionOp2.Raster Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IE > IExtractionOp2 Interface > IExtractionOp2.Raster Method
ArcGIS Developer Help

IExtractionOp2.Raster Method

Extracts the cells of a raster whose corresponding cells in the mask raster have valid value.

[Visual Basic .NET]
Public Function Raster ( _
    ByVal geoDataset As IGeoDataset, _
    ByVal maskRaster As IGeoDataset _
) As IGeoDataset
[C#]
public IGeoDataset Raster (
    IGeoDataset geoDataset,
    IGeoDataset maskRaster
);
[C++]
HRESULT Raster(
  IGeoDataset* geoDataset,
  IGeoDataset* maskRaster
);
[C++]
Parameters
geoDataset [in]

geoDataset is a parameter of type IGeoDataset* maskRaster [in]
maskRaster is a parameter of type IGeoDataset*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

geoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

The geoDataset identifies the cell values which will be selected inside or outside of a specified polygon.

maskRaster

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

The maskRaster identifies only those cells within the analysis extent that will be considered when performing an extraction.  Only the identified cells will be processed in subsequent output raster datasets. All other cells are characterized as nodata.

 

See Also

IExtractionOp2 Interface