ArcObjects Library Reference (SpatialAnalyst)  

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,
  IGeoDataset** outGeodataset
);
[C++]

Parameters

geoDataset [in]

  geoDataset is a parameter of type IGeoDataset

maskRaster [in]

  maskRaster is a parameter of type IGeoDataset

outGeodataset [out, retval]

  outGeodataset 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