geotrellis.raster.op.global

CostDistance

final case class CostDistance(costOp: Op[Raster], pointsOp: Op[Seq[(Int, Int)]]) extends Op[Raster] with Product with Serializable

Generate a Cost-Distance raster based on a set of starting points and a cost raster

costOp

Cost Raster (Int)

pointsOp

List of starting points as tuples

Note

Operation will only work with integer typed Cost Rasters (TypeBit,TypeByte,TypeShort,TypeInt). If a double typed Cost Raster (TypeFloat,TypeDouble) is passed in, those costs will be rounded to their floor integer values.

Linear Supertypes
Operation[Raster], Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CostDistance
  2. Operation
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CostDistance(costOp: Op[Raster], pointsOp: Op[Seq[(Int, Int)]])

    costOp

    Cost Raster (Int)

    pointsOp

    List of starting points as tuples

Type Members

  1. type Args = List[Any]

    Definition Classes
    Operation
  2. type Cost = (Int, Int, Double)

  3. final class Dir extends AnyRef

  4. 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(): StepOutput[Raster]

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

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

    Definition Classes
    Any
  9. def calcCost(c: Int, r: Int, dir: Dir, cost: Raster): DOption

  10. def calcCost(c: Int, r: Int, cr2: (Int, Int), cost: Raster): DOption

  11. def calcCost(c: Int, r: Int, c2: Int, r2: Int, cost: Raster): DOption

  12. def calcCostCell(c: Int, r: Int, dir: Dir, cost: Raster, d: DoubleArrayRasterData): Option[(Int, Int, Double)]

    Input: (c,r) => Source cell (dc,dr) => Delta (direction) cost => Cost raster d => C-D output raster

    Input: (c,r) => Source cell (dc,dr) => Delta (direction) cost => Cost raster d => C-D output raster

    Output: List((c,r)) <- list of cells set

  13. def calcNeighbors(c: Int, r: Int, cost: Raster, d: DoubleArrayRasterData, p: PriorityQueue[(Int, Int, Double)]): Unit

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def costDistance(cost: Raster, points: List[(Int, Int)]): Result[Raster]

  16. val costOp: Op[Raster]

    Cost Raster (Int)

  17. val debug: Boolean

    Definition Classes
    Operation
  18. val dirs: Array[Dir]

  19. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def factor(c: Int, r: Int, c1: Int, r1: Int): Double

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

    Definition Classes
    Operation
  22. def finalize(): Unit

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

    Definition Classes
    Operation
  25. 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
  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def into[U](f: (Operation[Raster]) ⇒ 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

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isValid(c: Int, r: Int, cost: Raster): Boolean

  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. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. val nextSteps: Steps

    Definition Classes
    CostDistanceOperation
  33. final def notify(): Unit

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

    Definition Classes
    AnyRef
  35. def opId: String

    Definition Classes
    Operation
  36. val pointsOp: Op[Seq[(Int, Int)]]

    List of starting points as tuples

  37. def prettyString: String

    Definition Classes
    Operation
  38. def processNextSteps(args: Args): StepOutput[Raster]

    Definition Classes
    Operation
  39. def run(): StepOutput[Raster]

    Execute this operation and return the result.

    Execute this operation and return the result.

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

    Definition Classes
    Operation
  41. def safeGet(c: Int, r: Int, cost: Raster): IOption

  42. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Definition Classes
    Operation
  47. def withName(n: String): Operation[Raster]

    Definition Classes
    Operation
  48. 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

Inherited from Operation[Raster]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped