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


IExtractionOp2.Attribute Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

IExtractionOp2.Attribute Method

Extracts the cells of a raster based on a logical query.

[Visual Basic .NET]
Public Function Attribute ( _
    ByVal Raster As IRasterDescriptor _
) As IGeoDataset
[C#]
public IGeoDataset Attribute (
    IRasterDescriptor Raster
);
[C++]
HRESULT Attribute(
  IRasterDescriptor* Raster
);
[C++]

Parameters Raster [in]
Raster is a parameter of type IRasterDescriptor*

Product Availability

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

Remarks

raster

an input RasterDescriptor that was created by a logical expression based on the attributes in a Raster. Those cells for which the logical expression evaluated to True in the RasterDescriptor are selected. Those cells that are not selected will be set to NoData.

 

See Also

IExtractionOp2 Interface