ArcObjects Library Reference (SpatialAnalyst)  

ILogicalOp Interface

Provides access to members that control the logical operations.

Product Availability

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

Members

Description
Method BooleanAnd Performs a boolean 'and' operation on two input rasters.
Method BooleanNot Perorms a boolean 'complement' operation on two input rasters.
Method BooleanOr Performs a boolean 'or' operation on two input rasters.
Method BooleanXOr Performs a boolean 'exclusive or' operation on two input rasters.
Method CombinatorialAnd Performs a combinatorial 'and' operation on two input rasters.
Method CombinatorialOr Performs a combinatorial 'or' operation on two input rasters.
Method CombinatorialXOr Performs a combinatorial 'exclusive or' operation on two input rasters.
Method EqualTo Returns 1 for cells where the first raster equals than the second raster.
Method GreaterThan Returns 1 for cells where the first raster is greater than the second raster.
Method GreaterThanEqual Returns 1 for cells where the first raster is greater than or equal to the second raster.
Method IsNull On a cell by cell basis, returns 1 if the input value is NoData, and 0 if it is not.
Method LessThan Returns 1 for cells where the first raster is less than the second raster.
Method LessThanEqual Returns 1 for cells where the first raster less than or equal to the second raster.
Method NotEqual Returns 1 for cells where the first raster is not equal to the second raster.
Method Test Sets the output to 1 or 0 on a cell-by-cell basis based on evaluation of a boolean logical expression.

CoClasses that implement ILogicalOp

CoClasses and Classes Description
RasterMathOps A mechanism for performing mathematical operations on rasters.

Remarks

  • Read the Working with ArcGIS Spatial Analyst objects technical document for general information on implementing Spatial Analyst operations.
  • .NET Snippets

    Create LogicalOp Combinatorial OR Raster | Create LogicalOp Boolean AND Raster | Create LogicalOp Boolean XOR Raster | Create LogicalOp Combinatorial AND Raster | Create LogicalOp Boolean NOT Raster | Create LogicalOp Boolean OR Raster | Create LogicalOp Combinatorial XOR Raster