geotrellis.feature.op.geometry

ForEachCellByFeature

case class ForEachCellByFeature[G[_] <: Geometry[_], D](feature: Op[G[D]], re: Op[RasterExtent])(f: Callback[G, D]) extends Op2[G[D], RasterExtent, Unit] with Product with Serializable

Invoke a function on each cell under provided features.

This function is a closure that returns Unit; all results are a side effect of this function.

feature

Feature for calculation

re

RasterExtent to use for iterating through cells

f

A function that takes (col:Int, row:Int, rasterValue:Int, feature:Feature)

Note

The function f should modify a mutable variable as a side effect. While not ideal, this avoids the unavoidable boxing that occurs when a Function3 returns a primitive value.

Linear Supertypes
Op2[G[D], RasterExtent, Unit], Operation[Unit], Serializable, Serializable, Product, scala.Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ForEachCellByFeature
  2. Op2
  3. Operation
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ForEachCellByFeature(feature: Op[G[D]], re: Op[RasterExtent])(f: Callback[G, D])

    feature

    Feature for calculation

    re

    RasterExtent to use for iterating through cells

    f

    A function that takes (col:Int, row:Int, rasterValue:Int, feature:Feature)

Type Members

  1. type Args = List[Any]

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

    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(): StepOutput[Unit]

    Definition Classes
    Op2Operation
  7. def andThen[U](f: (Unit) ⇒ Op[U]): Operation[U]

    Definition Classes
    Operation
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(other: Any): Boolean

    Definition Classes
    Op2 → Equals
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val debug: Boolean

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

    Definition Classes
    AnyRef
  13. val feature: Op[G[D]]

    Feature for calculation

  14. def filter(f: (Unit) ⇒ Boolean): Operation[Unit]

    Definition Classes
    Operation
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[U](f: (Unit) ⇒ 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
  17. def flatten[B](implicit f: (Unit) ⇒ Op[B]): Operation[B]

    Definition Classes
    Operation
  18. def foreach[U](f: (Unit) ⇒ 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
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def into[U](f: (Operation[Unit]) ⇒ U): U

    Call the given function with this operation as its argument.

    Call the given function with this operation as its argument.

    This is primarily useful for code readability.

    Definition Classes
    Operation
    See also

    http://debasishg.blogspot.com/2009/09/thrush-combinator-in-scala.html

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def map[U](f: (Unit) ⇒ 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
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. val nextSteps: Steps

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

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

    Definition Classes
    AnyRef
  27. def opId: String

    Definition Classes
    Operation
  28. def prettyString: String

    Definition Classes
    Operation
  29. def processNextSteps(args: Args): StepOutput[Unit]

    Definition Classes
    Operation
  30. def productArity: Int

    Definition Classes
    Op2 → Product
  31. def productElement(n: Int): Any

    Definition Classes
    Op2 → Product
  32. val re: Op[RasterExtent]

    RasterExtent to use for iterating through cells

  33. def run(): StepOutput[Unit]

    Execute this operation and return the result.

    Execute this operation and return the result.

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

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

    Definition Classes
    AnyRef
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def withFilter(f: (Unit) ⇒ Boolean): Operation[Unit]

    Definition Classes
    Operation
  40. def withName(n: String): Operation[Unit]

    Definition Classes
    Operation
  41. def withResult[U](f: (Unit) ⇒ 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

Inherited from Op2[G[D], RasterExtent, Unit]

Inherited from Operation[Unit]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from scala.Equals

Inherited from AnyRef

Inherited from Any

Ungrouped