Packages

c

geotrellis.raster.mapalgebra.focal.hillshade

SurfacePointCalculation

abstract class SurfacePointCalculation[T] extends FocalCalculation[T]

Calculation used for surface point calculations such as Slope, Aspect, and Hillshade

Uses a specific traversal strategy for performance benefits.

Note

For edge cells, the neighborhood points that lie outside the extent of the raster will be counted as having the same value as the focal point.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SurfacePointCalculation
  2. FocalCalculation
  3. Resulting
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SurfacePointCalculation(r: Tile, n: Neighborhood, analysisArea: Option[GridBounds[Int]], cellSize: CellSize, target: TargetCell = TargetCell.All)

Abstract Value Members

  1. abstract val copyOriginalValue: (Int, Int, Int, Int) ⇒ Unit

    Copies original value to result, (focusCol: Int, focusRow: Int, resultCol: Int, rowRow: Int) => Unit

    Copies original value to result, (focusCol: Int, focusRow: Int, resultCol: Int, rowRow: Int) => Unit

    Definition Classes
    Resulting
  2. abstract def result: T
    Definition Classes
    Resulting
  3. abstract def setValue(x: Int, y: Int, s: SurfacePoint): Unit

    Sets a result at (x, y) from a SurfacePoint

    Sets a result at (x, y) from a SurfacePoint

    Implementors need to provide this function to store the results of the surface point calculation.

Concrete Value Members

  1. var base: Array[Double]
  2. val bounds: GridBounds[Int]
    Definition Classes
    FocalCalculation
  3. var cellHeight: Double
  4. val cellSize: CellSize
  5. var cellWidth: Double
  6. var east: Array[Double]
  7. def execute(): T

    Executes a specific traversal strategy for SurfacePointCalculation.

    Executes a specific traversal strategy for SurfacePointCalculation. The difference between this and ScanLine for CellwiseCalculation is that for edge cases, the value at the focus is added in place of out-of-border neighborhood values.

    Definition Classes
    SurfacePointCalculationFocalCalculation
    Note

    Assumes a Square(1) neighborhood.

    ,

    All values in the neighborhood that are outside the raster grid are counted as having the focal value. Note that in the case the cell is outside the analysis area, but still inside the raster, the raster value will still be used.

  8. var lastY: Int
  9. def moveRight(): Unit
  10. val r: Tile
    Definition Classes
    FocalCalculation
  11. val s: SurfacePoint
  12. val target: TargetCell
    Definition Classes
    FocalCalculation
  13. var west: Array[Double]