Packages

case class CompositeTile(tiles: Seq[Tile], tileLayout: TileLayout) extends Tile with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompositeTile
  2. Product
  3. Equals
  4. Tile
  5. MappableTile
  6. MacroMappableTile
  7. IterableTile
  8. MacroIterableTile
  9. CellGrid
  10. GridIntegral
  11. Grid
  12. Serializable
  13. Serializable
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompositeTile(tiles: Seq[Tile], tileLayout: TileLayout)

Value Members

  1. def asciiDraw(): String

    Return an ascii-art representation of this Tile.

    Return an ascii-art representation of this Tile.

    returns

    A string containing the ascii art

  2. val cellType: CellType
    Definition Classes
    CompositeTileCellGrid
  3. val cols: Int

    cols and rows are explicitly defined to help with the Grid[N].{cols | rows} specialized functions dispatch.

    cols and rows are explicitly defined to help with the Grid[N].{cols | rows} specialized functions dispatch. See https://github.com/locationtech/geotrellis/issues/3427

    Definition Classes
    CompositeTileTileGrid
  4. def combine(other: Tile)(f: (Int, Int) ⇒ Int): Tile

    Combine two CompositeTiles' cells into new cells using the given integer function.

    Combine two CompositeTiles' cells into new cells using the given integer function. For every (x, y) cell coordinate, get each of the Tiles' integer value, map them to a new value, and assign it to the output's (x, y) cell.

    other

    The other Tile

    f

    A function from (Int, Int) to Int, the respective arguments are from the respective Tiles

    returns

    The result, an Tile

    Definition Classes
    CompositeTileTile
  5. def combineDouble(other: Tile)(f: (Double, Double) ⇒ Double): Tile

    Combine two CompositeTiles' cells into new cells using the given double function.

    Combine two CompositeTiles' cells into new cells using the given double function. For every (x, y) cell coordinate, get each of the Tiles' integer value, map them to a new value, and assign it to the output's (x, y) cell.

    other

    The other Tile

    f

    A function from (Int, Int) to Int, the respective arguments are from the respective Tiles

    returns

    The result, an Tile

    Definition Classes
    CompositeTileTile
  6. def convert(targetCellType: CellType): Tile

    Returns a Tile equivalent to this CompositeTile, except with cells of the given type.

    Returns a Tile equivalent to this CompositeTile, except with cells of the given type.

    targetCellType

    The type of cells that the result should have

    returns

    The new Tile

    Definition Classes
    CompositeTileTile
  7. def dimensions: Dimensions[Int]
    Definition Classes
    GridIntegralGrid
  8. 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

    Definition Classes
    Tile
  9. 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

    Definition Classes
    Tile
  10. 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

    Definition Classes
    Tile
  11. 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

    Definition Classes
    Tile
  12. 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

    Definition Classes
    Tile
  13. def findMinMax: (Int, Int)

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

    Definition Classes
    Tile
    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.

  14. def findMinMaxDouble: (Double, Double)

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

    Definition Classes
    Tile
  15. def foreach(f: (Int) ⇒ Unit): Unit

    Execute a function on each cell of the CompositeTile.

    Execute a function on each cell of the CompositeTile.

    f

    A function from Int to Unit. Presumably, the function is executed for side-effects.

    Definition Classes
    CompositeTileTile
  16. macro 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
  17. def foreachDouble(f: (Double) ⇒ Unit): Unit

    Execute a function on each cell of the CompositeTile.

    Execute a function on each cell of the CompositeTile.

    f

    A function from Double to Unit. Presumably, the function is executed for side-effects.

    Definition Classes
    CompositeTileTile
  18. macro 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
  19. def foreachDoubleVisitor(visitor: DoubleTileVisitor): Unit

    Execute an DoubleTileVisitor at each cell of the CompositeTile.

    Execute an DoubleTileVisitor at each cell of the CompositeTile.

    visitor

    A DoubleTileVisitor

    Definition Classes
    CompositeTileMacroIterableTile
  20. def foreachIntVisitor(visitor: IntTileVisitor): Unit

    Execute an IntTileVisitor at each cell of the CompositeTile.

    Execute an IntTileVisitor at each cell of the CompositeTile.

    visitor

    An IntTileVisitor

    Definition Classes
    CompositeTileMacroIterableTile
  21. def get(col: Int, row: Int): Int

    Fetch the datum at the given column and row of the CompositeTile.

    Fetch the datum at the given column and row of the CompositeTile.

    col

    The column

    row

    The row

    returns

    The Int datum found at the given location

    Definition Classes
    CompositeTileTile
  22. def getDouble(col: Int, row: Int): Double

    Fetch the datum at the given column and row of the CompositeTile.

    Fetch the datum at the given column and row of the CompositeTile.

    col

    The column

    row

    The row

    returns

    The Double datum found at the given location

    Definition Classes
    CompositeTileTile
  23. def interpretAs(targetCellType: CellType): CompositeTile

    Changes the interpretation of the tile cells through changing NoData handling and optionally cell data type.

    Changes the interpretation of the tile cells through changing NoData handling and optionally cell data type. If DataType portion of the CellType is unchanged the tile data is not duplicated through conversion. If cell DataType conversion is required it is done in a naive way, without considering NoData handling.

    Definition Classes
    CompositeTileTile
  24. def isNoDataTile: Boolean
    Definition Classes
    Tile
  25. def map(f: (Int) ⇒ Int): Tile

    Map each cell in the given raster to a new one, using the given function.

    Map each cell in the given raster to a new one, using the given function.

    f

    A function from Int to Int, executed at each point of the tile

    returns

    The result, a Tile

    Definition Classes
    CompositeTileTile
  26. macro 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
  27. def mapDouble(f: (Double) ⇒ Double): Tile

    Map each cell in the given raster to a new one, using the given function.

    Map each cell in the given raster to a new one, using the given function.

    f

    A function from Double to Double, executed at each point of the tile

    returns

    The result, a Tile

    Definition Classes
    CompositeTileTile
  28. macro 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
  29. def mapDoubleMapper(mapper: DoubleTileMapper): Tile

    Map an DoubleTileMapper over the present tile.

    Map an DoubleTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    CompositeTileMacroMappableTile
  30. 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

    Definition Classes
    Tile
  31. 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

    Definition Classes
    Tile
  32. def mapIntMapper(mapper: IntTileMapper): Tile

    Map an IntTileMapper over the present tile.

    Map an IntTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    CompositeTileMacroMappableTile
  33. def mutable(targetCellType: CellType): MutableArrayTile

    Return the MutableArrayTile equivalent of this CompositeTile.

    Return the MutableArrayTile equivalent of this CompositeTile.

    returns

    The MutableArrayTile

  34. def mutable: MutableArrayTile

    Return the MutableArrayTile equivalent of this CompositeTile.

    Return the MutableArrayTile equivalent of this CompositeTile.

    returns

    The MutableArrayTile

    Definition Classes
    CompositeTileTile
  35. 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

    Definition Classes
    Tile
  36. 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

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

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

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

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

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

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

    Definition Classes
    Tile
  39. val rows: Int
    Definition Classes
    CompositeTileTileGrid
  40. def size: Int
    Definition Classes
    GridIntegralGrid
  41. val tileLayout: TileLayout
  42. val tiles: Seq[Tile]
  43. def toArray(): Array[Int]

    Return a copy of the data contained in this tile as an array.

    Return a copy of the data contained in this tile as an array.

    returns

    The array of integers

    Definition Classes
    CompositeTileTile
  44. def toArrayDouble(): Array[Double]

    Return a copy of the data contained in this tile as an array of doubles.

    Return a copy of the data contained in this tile as an array of doubles.

    returns

    The array of doubles

    Definition Classes
    CompositeTileTile
  45. def toArrayTile(): ArrayTile

    Another name for the 'mutable' method on this class.

    Another name for the 'mutable' method on this class.

    Definition Classes
    CompositeTileTile
  46. def toBytes(): Array[Byte]

    Return the underlying data behind this CompositeTile as an array.

    Return the underlying data behind this CompositeTile as an array.

    returns

    An array of bytes

    Definition Classes
    CompositeTileTile
  47. def withNoData(noDataValue: Option[Double]): CompositeTile
    Definition Classes
    CompositeTileTile