geotrellis.operation

BinaryIfElseCell

case class BinaryIfElseCell (r1: Op[IntRaster], r2: Op[IntRaster], cond: (Int, Int) ⇒ Boolean, trueValue: Int, falseValue: Int) extends Op[IntRaster] with BinaryLocal with Product with Serializable

Given a condition over two rasters, set the value of each cell in the output to a specified true or false value after testing the specified condition on the corresponding values in each of the two input rasters. each of the two input rasters.

Usage:

// Generate a raster with the value 1 in each cell in which the value of A
// is greater than B in the corresponding cell.  Set the value to 0 if the
// condition is false.

val C = BinaryIfElseCell(A,B, (a,b) => a > b, 1, 0)

Linear Supertypes
Serializable, Serializable, BinaryLocal, LocalOperation, Operation[IntRaster], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. BinaryIfElseCell
  2. Serializable
  3. Serializable
  4. BinaryLocal
  5. LocalOperation
  6. Operation
  7. Product
  8. Equals
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BinaryIfElseCell (r1: Op[IntRaster], r2: Op[IntRaster], cond: (Int, Int) ⇒ Boolean, trueValue: Int, falseValue: Int)

Type Members

  1. type Steps = PartialFunction[Any, StepOutput[IntRaster]]

    Definition Classes
    Operation

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def _run (context: Context): StepOutput[IntRaster]

    Definition Classes
    BinaryLocalOperation
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def canEqual (arg0: Any): Boolean

    Definition Classes
    BinaryIfElseCell → Equals
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val cond : (Int, Int) ⇒ Boolean

  11. val debug : Boolean

    Definition Classes
    Operation
  12. def dispatch (dispatcher: ActorRef): DispatchedOperation[IntRaster]

    Definition Classes
    Operation
  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

    Definition Classes
    BinaryIfElseCell → Equals → AnyRef → Any
  15. val falseValue : Int

  16. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def handleCells (z1: Int, z2: Int): Int

    Definition Classes
    BinaryIfElseCellBinaryLocal
  19. def hashCode (): Int

    Definition Classes
    BinaryIfElseCell → AnyRef → Any
  20. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  21. def name : String

    Return operation identified (class simple name).

    Return operation identified (class simple name).

    Definition Classes
    Operation
  22. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  23. val nextSteps : Steps

    Definition Classes
    BinaryLocalOperation
  24. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def productArity : Int

    Definition Classes
    BinaryIfElseCell → Product
  27. def productElement (arg0: Int): Any

    Definition Classes
    BinaryIfElseCell → Product
  28. def productIterator : Iterator[Any]

    Definition Classes
    Product
  29. def productPrefix : String

    Definition Classes
    BinaryIfElseCell → Product
  30. val r1 : Op[IntRaster]

    Definition Classes
    BinaryIfElseCellBinaryLocal
  31. val r2 : Op[IntRaster]

    Definition Classes
    BinaryIfElseCellBinaryLocal
  32. def run (context: Context): StepOutput[IntRaster]

    Execute this operation and return the result.

    Execute this operation and return the result.

    Definition Classes
    Operation
  33. def runAsync (args: Args): StepOutput[IntRaster]

    Definition Classes
    Operation
  34. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  35. def toString (): String

    Definition Classes
    BinaryIfElseCell → AnyRef → Any
  36. val trueValue : Int

  37. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  39. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from BinaryLocal

Inherited from LocalOperation

Inherited from Operation[IntRaster]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any