ArcObjects Library Reference (SpatialAnalyst)  

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

Parameters

Raster [in]

  Raster is a parameter of type IRasterDescriptor

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

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

IExtractionOp Interface

.NET Snippets

Create ExtractionOp Attribute Raster