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.

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
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BinaryIfElseCell
  2. Serializable
  3. Serializable
  4. BinaryLocal
  5. LocalOperation
  6. Operation
  7. Product
  8. Equals
  9. AnyRef
  10. Any
Implicitly
  1. by implicitLiteral
  2. by any2stringadd
  3. by any2stringfmt
  4. by any2ArrowAssoc
  5. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
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. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (BinaryIfElseCell, B)

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to ArrowAssoc[BinaryIfElseCell] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    Any
  10. def canEqual(that: Any): Boolean

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Equals
  11. def clone(): AnyRef

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

  13. val debug: Boolean

    Definition Classes
    Operation
  14. def dispatch(dispatcher: ActorRef): DispatchedOperation[Raster]

    Definition Classes
    Operation
  15. def ensuring(cond: (BinaryIfElseCell) ⇒ Boolean, msg: ⇒ Any): BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Ensuring[BinaryIfElseCell] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (BinaryIfElseCell) ⇒ Boolean): BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Ensuring[BinaryIfElseCell] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Ensuring[BinaryIfElseCell] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Ensuring[BinaryIfElseCell] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. val falseValue: Int

  21. def filter(f: (Raster) ⇒ Boolean): Operation[Raster]

    Definition Classes
    Operation
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def flatMap[U](f: (Raster) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Definition Classes
    Operation
  24. def foreach[U](f: (Raster) ⇒ U): Unit

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Definition Classes
    Operation
  25. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. final def getClass(): Class[_]

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

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

    Definition Classes
    BinaryIfElseCellBinaryLocal
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def map[U](f: (Raster) ⇒ U): Operation[U]

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Definition Classes
    Operation
  31. def name: String

    Return operation identified (class simple name).

    Return operation identified (class simple name).

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

    Definition Classes
    AnyRef
  33. val nextSteps: Steps

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

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

    Definition Classes
    AnyRef
  36. def processNextSteps(args: Args): StepOutput[Raster]

    Definition Classes
    Operation
  37. def productArity: Int

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Product
  38. def productElement(n: Int): Any

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Product
  39. def productIterator: Iterator[Any]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Product
  40. def productPrefix: String

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Product
  41. val r1: Op[Raster]

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

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

    Execute this operation and return the result.

    Execute this operation and return the result.

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

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

    Definition Classes
    AnyRef
  46. val trueValue: Int

  47. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. def withResult[U](f: (Raster) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Same as flatMap.

    Definition Classes
    Operation
  51. def [B](y: B): (BinaryIfElseCell, B)

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to ArrowAssoc[BinaryIfElseCell] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val debug: Boolean

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).debug
    Definition Classes
    Operation
  2. def dispatch(dispatcher: ActorRef): DispatchedOperation[BinaryIfElseCell]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).dispatch(dispatcher)
    Definition Classes
    Operation
  3. def filter(f: (BinaryIfElseCell) ⇒ Boolean): Operation[BinaryIfElseCell]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).filter(f)
    Definition Classes
    Operation
  4. def flatMap[U](f: (BinaryIfElseCell) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).flatMap(f)
    Definition Classes
    Operation
  5. def foreach[U](f: (BinaryIfElseCell) ⇒ U): Unit

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Create an operation that applies the function f to the result of this operation, but returns nothing.

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).foreach(f)
    Definition Classes
    Operation
  6. def map[U](f: (BinaryIfElseCell) ⇒ U): Operation[U]

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Create a new operation that returns the result of the provided function that takes this operation's result as its argument.

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).map(f)
    Definition Classes
    Operation
  7. def name: String

    Return operation identified (class simple name).

    Return operation identified (class simple name).

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).name
    Definition Classes
    Operation
  8. val nextSteps: PartialFunction[Any, StepOutput[BinaryIfElseCell]]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).nextSteps
    Definition Classes
    Operation
  9. def processNextSteps(args: List[Any]): StepOutput[BinaryIfElseCell]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).processNextSteps(args)
    Definition Classes
    Operation
  10. def run(context: Context): StepOutput[BinaryIfElseCell]

    Execute this operation and return the result.

    Execute this operation and return the result.

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).run(context)
    Definition Classes
    Operation
  11. def runAsync(args: List[Any]): StepOutput[BinaryIfElseCell]

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).runAsync(args)
    Definition Classes
    Operation
  12. val self: Any

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (binaryIfElseCell: StringAdd).self
    Definition Classes
    StringAdd
  13. val self: Any

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (binaryIfElseCell: StringFormat).self
    Definition Classes
    StringFormat
  14. def withResult[U](f: (BinaryIfElseCell) ⇒ Operation[U]): Operation[U]

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Create a new operation with a function that takes the result of this operation and returns a new operation.

    Same as flatMap.

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Operation[BinaryIfElseCell] performed by method implicitLiteral in geotrellis.Operation.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Operation[BinaryIfElseCell]).withResult(f)
    Definition Classes
    Operation

Deprecated Value Members

  1. def x: BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to ArrowAssoc[BinaryIfElseCell] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (binaryIfElseCell: ArrowAssoc[BinaryIfElseCell]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: BinaryIfElseCell

    Implicit information
    This member is added by an implicit conversion from BinaryIfElseCell to Ensuring[BinaryIfElseCell] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (binaryIfElseCell: Ensuring[BinaryIfElseCell]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring 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

Inherited by implicit conversion implicitLiteral from BinaryIfElseCell to Operation[BinaryIfElseCell]

Inherited by implicit conversion any2stringadd from BinaryIfElseCell to StringAdd

Inherited by implicit conversion any2stringfmt from BinaryIfElseCell to StringFormat

Inherited by implicit conversion any2ArrowAssoc from BinaryIfElseCell to ArrowAssoc[BinaryIfElseCell]

Inherited by implicit conversion any2Ensuring from BinaryIfElseCell to Ensuring[BinaryIfElseCell]

Ungrouped