geotrellis.raster.op.focal

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
Serializable, Serializable, Operation[Raster], Product, Equals, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CostDistance
  2. Serializable
  3. Serializable
  4. Operation
  5. Product
  6. Equals
  7. AnyRef
  8. 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 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. def +(other: String): String

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

    Implicit information
    This member is added by an implicit conversion from CostDistance to ArrowAssoc[CostDistance] 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
    CostDistanceOperation
  9. final def asInstanceOf[T0]: T0

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

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

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

  13. 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

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

  15. def canEqual(that: Any): Boolean

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

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

  18. val costOp: Op[Raster]

    Cost Raster (Int)

  19. val debug: Boolean

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

  21. def dispatch(dispatcher: ActorRef): DispatchedOperation[Raster]

    Definition Classes
    Operation
  22. def ensuring(cond: (CostDistance) ⇒ Boolean, msg: ⇒ Any): CostDistance

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

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

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

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

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

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

    Definition Classes
    Operation
  29. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. 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
  31. 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
  32. def formatted(fmtstr: String): String

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

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

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

  36. 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
  37. def name: String

    Return operation identified (class simple name).

    Return operation identified (class simple name).

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

    Definition Classes
    AnyRef
  39. val nextSteps: Steps

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

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

    Definition Classes
    AnyRef
  42. val pointsOp: Op[Seq[(Int, Int)]]

    List of starting points as tuples

  43. def processNextSteps(args: Args): StepOutput[Raster]

    Definition Classes
    Operation
  44. def productArity: Int

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

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

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

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] performed by method implicitLiteral in geotrellis.Operation.
    Definition Classes
    Product
  48. def run(context: Context): StepOutput[Raster]

    Execute this operation and return the result.

    Execute this operation and return the result.

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

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  55. 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
  56. def [B](y: B): (CostDistance, B)

    Implicit information
    This member is added by an implicit conversion from CostDistance to ArrowAssoc[CostDistance] 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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).debug
    Definition Classes
    Operation
  2. def dispatch(dispatcher: ActorRef): DispatchedOperation[CostDistance]

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).dispatch(dispatcher)
    Definition Classes
    Operation
  3. def filter(f: (CostDistance) ⇒ Boolean): Operation[CostDistance]

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).filter(f)
    Definition Classes
    Operation
  4. def flatMap[U](f: (CostDistance) ⇒ 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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).flatMap(f)
    Definition Classes
    Operation
  5. def foreach[U](f: (CostDistance) ⇒ 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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).foreach(f)
    Definition Classes
    Operation
  6. def map[U](f: (CostDistance) ⇒ 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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).name
    Definition Classes
    Operation
  8. val nextSteps: PartialFunction[Any, StepOutput[CostDistance]]

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).nextSteps
    Definition Classes
    Operation
  9. def processNextSteps(args: List[Any]): StepOutput[CostDistance]

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).processNextSteps(args)
    Definition Classes
    Operation
  10. def run(context: Context): StepOutput[CostDistance]

    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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).run(context)
    Definition Classes
    Operation
  11. def runAsync(args: List[Any]): StepOutput[CostDistance]

    Implicit information
    This member is added by an implicit conversion from CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).runAsync(args)
    Definition Classes
    Operation
  12. val self: Any

    Implicit information
    This member is added by an implicit conversion from CostDistance 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:
    (costDistance: StringAdd).self
    Definition Classes
    StringAdd
  13. val self: Any

    Implicit information
    This member is added by an implicit conversion from CostDistance 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:
    (costDistance: StringFormat).self
    Definition Classes
    StringFormat
  14. def withResult[U](f: (CostDistance) ⇒ 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 CostDistance to Operation[CostDistance] 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:
    (costDistance: Operation[CostDistance]).withResult(f)
    Definition Classes
    Operation

Deprecated Value Members

  1. def x: CostDistance

    Implicit information
    This member is added by an implicit conversion from CostDistance to ArrowAssoc[CostDistance] 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:
    (costDistance: ArrowAssoc[CostDistance]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: CostDistance

    Implicit information
    This member is added by an implicit conversion from CostDistance to Ensuring[CostDistance] 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:
    (costDistance: Ensuring[CostDistance]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Operation[Raster]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

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

Inherited by implicit conversion any2stringadd from CostDistance to StringAdd

Inherited by implicit conversion any2stringfmt from CostDistance to StringFormat

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

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

Ungrouped