Provides access to members that control the extraction operations. Note: the IExtractionOp interface has been superseded byIExtractionOp2. Please consider using the more recent version.
Product Availability
Members
Description | ||
---|---|---|
Attribute | Extracts the cells of a raster based on a logical query. | |
Circle | Extracts the cells of a raster based on a circle. | |
Points | Extracts the cells of a raster based on points. | |
Polygon | Extracts the cells of a raster based on a polygon. | |
Raster | Extracts the cells of a raster whose corresponding cells in the mask raster have valid value. | |
Rectangle | Extracts the cells of a raster based on a rectangle. | |
Sample | Extracts the cells of a raster based on a sample. |
CoClasses that implement IExtractionOp
CoClasses and Classes | Description |
---|---|
RasterExtractionOp | A mechanism for performing operations that extract cells from rasters. |
Remarks
Spatial Analyst methods do not maintain colormaps in the output raster, therefore you can expect a loss of the color map when using methods of iExtractionOp. This happens during analysis where a new raster is being created and the input color map information is not carried over to the result. However, you can obtain and alter a raster dataset’s color map.
Assuming that pRasterDataset (IRasterDatset) and pColorMap (iRasterColorMap) have been created, the following code snippet applies a color map from one raster dataset to another.
'Get color map from Raster
Dim pColorMap As IRasterColormapSet
pColorMap = AccessRasterColorMap(pRasterDataSet01)
'Alter color map
of raster02 to match raster01
Dim pRasterDatasetEdit As IRasterDatasetEdit
Set pRasterDatasetEdit = RasterDataSet02
pRasterDatasetEdit.AlterColormap pColorMap
Click on the following link to learn more about working with Raster Data: DataSourcesRaster Library Overview.
- Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.