geotrellis.raster

Tile

trait Tile extends CellGrid with IterableTile with MappableTile[Tile]

Base trait for a Tile.

Linear Supertypes
MappableTile[Tile], MacroMappableTile[Tile], IterableTile, MacroIterableTile, CellGrid, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tile
  2. MappableTile
  3. MacroMappableTile
  4. IterableTile
  5. MacroIterableTile
  6. CellGrid
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def cellType: CellType

    Definition Classes
    CellGrid
  2. abstract def cols: Int

    Definition Classes
    CellGrid
  3. abstract def combine(r2: Tile)(f: (Int, Int) ⇒ Int): Tile

    Combine the given Tile with the present one using the given function.

  4. abstract def combineDouble(r2: Tile)(f: (Double, Double) ⇒ Double): Tile

    Combine the given Tile with the present one using the given function.

  5. abstract def convert(cellType: CellType): Tile

    Converts the cell type of the tile.

    Converts the cell type of the tile.

    Note

    This will immediately iterate over the tile and allocate a new copy of data; this should be a performance consideration.

  6. abstract def foreach(f: (Int) ⇒ Unit): Unit

    Execute the given function at each pixel of the present Tile.

  7. abstract def foreachDouble(f: (Double) ⇒ Unit): Unit

    Execute the given function at each pixel of the present Tile.

  8. abstract def foreachDoubleVisitor(visitor: macros.DoubleTileVisitor): Unit

    Definition Classes
    MacroIterableTile
  9. abstract def foreachIntVisitor(visitor: macros.IntTileVisitor): Unit

    Definition Classes
    MacroIterableTile
  10. abstract def get(col: Int, row: Int): Int

    Get value at given coordinates.

  11. abstract def getDouble(col: Int, row: Int): Double

    Get value at given coordinates.

  12. abstract def map(f: (Int) ⇒ Int): Tile

    Map the given function across the present Tile.

    Map the given function across the present Tile. The result is another Tile.

  13. abstract def mapDouble(f: (Double) ⇒ Double): Tile

    Map the given function across the present Tile.

    Map the given function across the present Tile. The result is another Tile.

  14. abstract def mapDoubleMapper(mapper: macros.DoubleTileMapper): Tile

    Definition Classes
    MacroMappableTile
  15. abstract def mapIntMapper(mapper: macros.IntTileMapper): Tile

    Definition Classes
    MacroMappableTile
  16. abstract def mutable: MutableArrayTile

    Create a mutable copy of this tile

  17. abstract def rows: Int

    Definition Classes
    CellGrid
  18. abstract def toArray(): Array[Int]

    Return the data behind this Tile, or a copy, as an Array of integers.

  19. abstract def toArrayDouble(): Array[Double]

    Return the data behind this Tile, or a copy, as an Array of doubles.

  20. abstract def toArrayTile(): ArrayTile

    Convert the present Tile to an ArrayTile.

  21. abstract def toBytes(): Array[Byte]

    Return the data behind this Tile, or a copy, as an Array of bytes.

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asciiDraw(): String

    Return ascii art of this raster.

  8. def asciiDrawDouble(significantDigits: Int = Int.MaxValue): String

    Return ascii art of this raster.

    Return ascii art of this raster. The single int parameter indicates the number of significant digits to be printed.

  9. def asciiDrawRange(colMin: Int, colMax: Int, rowMin: Int, rowMax: Int): String

    Return ascii art of a range from this raster.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def dimensions: (Int, Int)

    Definition Classes
    CellGrid
  12. def downsample(newCols: Int, newRows: Int)(f: (CellSet) ⇒ Int): Tile

    Reduce the resolution of the present Tile to the given number of columns and rows.

    Reduce the resolution of the present Tile to the given number of columns and rows. A new Tile is returned.

    newCols

    The number of columns in the new Tile

    newRows

    The number of rows in the new Tile

  13. def dualCombine(r2: Tile)(f: (Int, Int) ⇒ Int)(g: (Double, Double) ⇒ Double): Tile

    Combine two Tiles together using one of two given functions.

    Combine two Tiles together using one of two given functions. If the union of the types of the two cells is floating-point, then the floating function is used, otherwise the integer function is used.

    r2

    The tile to combine with the present one

    f

    The integer function

    g

    The double function

  14. def dualForeach(f: (Int) ⇒ Unit)(g: (Double) ⇒ Unit): Unit

    Execute a function at each pixel of a Tile.

    Execute a function at each pixel of a Tile. Two functions are given: an integer version which is used if the tile is an integer-tile, and the other in the case of a floating-tile.

    f

    A function from Int to Unit

    g

    A function from Double to Unit

  15. def dualMap(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Map one of the two given functions across the Tile to produce a new one.

    Map one of the two given functions across the Tile to produce a new one. One of the functions is from Int to Int, and the other from Double to Double.

    f

    A function from Int to Int

    g

    A function from Double to Double

  16. def dualMapIfSet(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Conditionally map across the Tile with one of two functions, depending on whether the tile is an integer- or a floating-tile.

    Conditionally map across the Tile with one of two functions, depending on whether the tile is an integer- or a floating-tile. A pixel is mapped only if it is set.

    f

    A function from Int to Int

    g

    A function from Double to Double

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

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def findMinMax: (Int, Int)

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

    Note

    Currently does not support double valued raster data types (FloatConstantNoDataCellType, DoubleConstantNoDataCellType). Calling findMinMax on rasters of those types will give the integer min and max of the rounded values of their cells.

  21. def findMinMaxDouble: (Double, Double)

    Return tuple of highest and lowest value in raster.

  22. def foreach(f: (Int, Int, Int) ⇒ Unit): Unit

    Execute the given function 'f' at every location in the tile.

    Execute the given function 'f' at every location in the tile. The function 'f' takes the column, row, and value and returns nothing (presumably for side-effects).

    Definition Classes
    IterableTile
    Annotations
    @macroImpl( ... )
  23. def foreachDouble(f: (Int, Int, Double) ⇒ Unit): Unit

    Execute the given function 'f' at every location in the tile.

    Execute the given function 'f' at every location in the tile. The function 'f' takes the column, row, and value, the last one as a double, and returns nothing (presumably for side-effects).

    Definition Classes
    IterableTile
    Annotations
    @macroImpl( ... )
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def gridBounds: GridBounds

    Definition Classes
    CellGrid
  26. def hashCode(): Int

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

    Definition Classes
    Any
  28. def isNoDataTile: Boolean

  29. def map(f: (Int, Int, Int) ⇒ Int): Tile

    Map over the tiles using a function which accepts the column, row, and value at that position and returns an integer.

    Map over the tiles using a function which accepts the column, row, and value at that position and returns an integer.

    Definition Classes
    MappableTile
    Annotations
    @macroImpl( ... )
  30. def mapDouble(f: (Int, Int, Double) ⇒ Double): Tile

    Map over the tiles using a function which accepts the column, row, and value at that position and returns a double.

    Map over the tiles using a function which accepts the column, row, and value at that position and returns a double.

    Definition Classes
    MappableTile
    Annotations
    @macroImpl( ... )
  31. def mapIfSet(f: (Int) ⇒ Int): Tile

    Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not.

    Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not. The result of the mapping is returned as a tile.

    f

    A function from Int to Int

  32. def mapIfSetDouble(f: (Double) ⇒ Double): Tile

    Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not.

    Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not. The result of the mapping is returned as a tile.

    f

    A function from Double to Double

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. def normalize(oldMin: Double, oldMax: Double, newMin: Double, newMax: Double): Tile

    Normalizes the values of this raster, given the current min and max, to a new min and max.

    Normalizes the values of this raster, given the current min and max, to a new min and max.

    oldMin

    Old minimum value

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

  35. def normalize(oldMin: Int, oldMax: Int, newMin: Int, newMax: Int): Tile

    Normalizes the values of this raster, given the current min and max, to a new min and max.

    Normalizes the values of this raster, given the current min and max, to a new min and max.

    oldMin

    Old minimum value

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

  36. final def notify(): Unit

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

    Definition Classes
    AnyRef
  38. def rescale(newMin: Double, newMax: Double): Tile

    Rescale the values in this Tile so that they are between the two given values.

  39. def rescale(newMin: Int, newMax: Int): Tile

    Rescale the values in this Tile so that they are between the two given values.

  40. def size: Int

    Definition Classes
    CellGrid
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  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( ... )

Inherited from MappableTile[Tile]

Inherited from MacroMappableTile[Tile]

Inherited from IterableTile

Inherited from MacroIterableTile

Inherited from CellGrid

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped