geotrellis.raster.op.local

BinaryIfElseCell

case class BinaryIfElseCell(r1: Op[Raster], r2: Op[Raster], cond: (Int, Int) ⇒ Boolean, trueValue: Int, falseValue: Int) extends Op[Raster] 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[Raster], 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[Raster], r2: Op[Raster], cond: (Int, Int) ⇒ Boolean, trueValue: Int, falseValue: Int)

Type Members

  1. type Args = List[Any]

    Definition Classes
    Operation
  2. type Steps = PartialFunction[Any, StepOutput[Raster]]

    Definition Classes
    Operation

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def _run(context: Context): StepOutput[Raster]

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

    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[Raster]

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

    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. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  18. def handle(z1: Int, z2: Int): Int

    Definition Classes
    BinaryIfElseCellBinaryLocal
  19. def handleDouble(z1: Double, z2: Double): Double

    Definition Classes
    BinaryIfElseCellBinaryLocal
  20. def hashCode(): Int

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

    Definition Classes
    Any
  22. def name: String

    Return operation identified (class simple name).

    Return operation identified (class simple name).

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

    Definition Classes
    AnyRef
  24. val nextSteps: Steps

    Definition Classes
    BinaryLocalOperation
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def productArity: Int

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

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

    Definition Classes
    Product
  30. def productPrefix: String

    Definition Classes
    BinaryIfElseCell → Product
  31. val r1: Op[Raster]

    Definition Classes
    BinaryIfElseCellBinaryLocal
  32. val r2: Op[Raster]

    Definition Classes
    BinaryIfElseCellBinaryLocal
  33. def run(context: Context): StepOutput[Raster]

    Execute this operation and return the result.

    Execute this operation and return the result.

    Definition Classes
    Operation
  34. def runAsync(args: Args): StepOutput[Raster]

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

    Definition Classes
    AnyRef
  36. def toString(): String

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

  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from BinaryLocal

Inherited from LocalOperation

Inherited from Operation[Raster]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any