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
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. |
- The method returns a reference to a Raster object.
- Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.