Class

geotrellis.raster

LazyConvertedArrayTile

Related Doc: package raster

Permalink

final case class LazyConvertedArrayTile(inner: Tile, cellType: CellType) extends Tile with Product with Serializable

LazyConvertedTile represents a lazily-applied conversion to any type.

Note

If you care converting to a CellType with less bits than the type of the underlying data, you are responsible for managing overflow. This convert does not do any casting; therefore converting from a IntConstantNoDataCellType to ByteConstantNoDataCellType could still return values greater than 127 from apply().

Linear Supertypes
Product, Equals, Tile, MappableTile[Tile], MacroMappableTile[Tile], IterableTile, MacroIterableTile, CellGrid, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LazyConvertedArrayTile
  2. Product
  3. Equals
  4. Tile
  5. MappableTile
  6. MacroMappableTile
  7. IterableTile
  8. MacroIterableTile
  9. CellGrid
  10. Serializable
  11. Serializable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LazyConvertedArrayTile(inner: Tile, cellType: CellType)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asciiDraw(): String

    Permalink

    Return ascii art of this raster.

    Return ascii art of this raster.

    Definition Classes
    Tile
  6. def asciiDrawDouble(significantDigits: Int = Int.MaxValue): String

    Permalink

    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.

    Definition Classes
    Tile
  7. def asciiDrawRange(colMin: Int, colMax: Int, rowMin: Int, rowMax: Int): String

    Permalink

    Return ascii art of a range from this raster.

    Return ascii art of a range from this raster.

    Definition Classes
    Tile
  8. val cellType: CellType

    Permalink
    Definition Classes
    LazyConvertedArrayTileCellGrid
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val cols: Int

    Permalink
    Definition Classes
    LazyConvertedArrayTileCellGrid
  11. def combine(other: Tile)(f: (Int, Int) ⇒ Int): Tile

    Permalink

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

    Combine two tiles' cells into new cells using the given integer function. For every (x, y) cell coordinate, get each of the tiles' integer values, 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

    returns

    The result, an Tile

    Definition Classes
    LazyConvertedArrayTileTile
  12. def combineDouble(other: Tile)(f: (Double, Double) ⇒ Double): Tile

    Permalink

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

    Combine two tiles' cells into new cells using the given double function. For every (x, y) cell coordinate, get each of the tiles' double values, 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

    returns

    The result, an Tile

    Definition Classes
    LazyConvertedArrayTileTile
  13. def convert(cellType: CellType): Tile

    Permalink

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

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

    cellType

    The type of cells that the result should have

    returns

    The new Tile

    Definition Classes
    LazyConvertedArrayTileTile
  14. def dimensions: (Int, Int)

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

    Permalink

    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
  16. def dualCombine(r2: Tile)(f: (Int, Int) ⇒ Int)(g: (Double, Double) ⇒ Double): Tile

    Permalink

    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
  17. def dualForeach(f: (Int) ⇒ Unit)(g: (Double) ⇒ Unit): Unit

    Permalink

    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
  18. def dualMap(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Permalink

    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
  19. def dualMapIfSet(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Permalink

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

    Permalink
    Definition Classes
    AnyRef
  21. def finalize(): Unit

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

    Permalink

    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.

  23. def findMinMaxDouble: (Double, Double)

    Permalink

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

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

    Permalink

    Execute a function on each cell of the tile.

    Execute a function on each cell of the tile. The function returns Unit, so it presumably produces side-effects.

    f

    A function from Int to Unit

    Definition Classes
    LazyConvertedArrayTileTile
  25. macro def foreach(f: (Int, Int, Int) ⇒ Unit): Unit

    Permalink

    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
  26. def foreachDouble(f: (Double) ⇒ Unit): Unit

    Permalink

    Execute a function on each cell of the tile.

    Execute a function on each cell of the tile. The function returns Unit, so it presumably produces side-effects.

    f

    A function from Double to Unit

    Definition Classes
    LazyConvertedArrayTileTile
  27. macro def foreachDouble(f: (Int, Int, Double) ⇒ Unit): Unit

    Permalink

    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
  28. def foreachDoubleVisitor(visitor: DoubleTileVisitor): Unit

    Permalink

    Execute an DoubleTileVisitor at each cell of the present tile.

    Execute an DoubleTileVisitor at each cell of the present tile.

    visitor

    An DoubleTileVisitor

    Definition Classes
    LazyConvertedArrayTileMacroIterableTile
  29. def foreachIntVisitor(visitor: IntTileVisitor): Unit

    Permalink

    Execute an IntTileVisitor at each cell of the present tile.

    Execute an IntTileVisitor at each cell of the present tile.

    visitor

    An IntTileVisitor

    Definition Classes
    LazyConvertedArrayTileMacroIterableTile
  30. def get(col: Int, row: Int): Int

    Permalink

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

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

    col

    The column

    row

    The row

    returns

    The Int datum found at the given location

    Definition Classes
    LazyConvertedArrayTileTile
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def getDouble(col: Int, row: Int): Double

    Permalink

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

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

    col

    The column

    row

    The row

    returns

    The Int datum found at the given location

    Definition Classes
    LazyConvertedArrayTileTile
  33. def gridBounds: GridBounds

    Permalink
    Definition Classes
    CellGrid
  34. val inner: Tile

    Permalink
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. def isNoDataTile: Boolean

    Permalink
    Definition Classes
    Tile
  37. def map(f: (Int) ⇒ Int): Tile

    Permalink

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

    Map each cell in the given tile 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
    LazyConvertedArrayTileTile
  38. macro def map(f: (Int, Int, Int) ⇒ Int): Tile

    Permalink

    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
  39. def mapDouble(f: (Double) ⇒ Double): Tile

    Permalink

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

    Map each cell in the given tile 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
    LazyConvertedArrayTileTile
  40. macro def mapDouble(f: (Int, Int, Double) ⇒ Double): Tile

    Permalink

    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
  41. def mapDoubleMapper(mapper: DoubleTileMapper): Tile

    Permalink

    Map an DoubleTileMapper over the present tile.

    Map an DoubleTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    LazyConvertedArrayTileMacroMappableTile
  42. def mapIfSet(f: (Int) ⇒ Int): Tile

    Permalink

    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
  43. def mapIfSetDouble(f: (Double) ⇒ Double): Tile

    Permalink

    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
  44. def mapIntMapper(mapper: IntTileMapper): Tile

    Permalink

    Map an IntTileMapper over the present tile.

    Map an IntTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    LazyConvertedArrayTileMacroMappableTile
  45. def mutable: MutableArrayTile

    Permalink

    Return the MutableArrayTile equivalent of this tile.

    Return the MutableArrayTile equivalent of this tile.

    returns

    The MutableArrayTile

    Definition Classes
    LazyConvertedArrayTileTile
  46. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    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
  48. def normalize(oldMin: Int, oldMax: Int, newMin: Int, newMax: Int): Tile

    Permalink

    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
  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

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

    Permalink

    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
  52. def rescale(newMin: Int, newMax: Int): Tile

    Permalink

    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
  53. val rows: Int

    Permalink
    Definition Classes
    LazyConvertedArrayTileCellGrid
  54. def size: Int

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

    Permalink
    Definition Classes
    AnyRef
  56. def toArray(): Array[Int]

    Permalink

    Return a copy of the underlying array of the present tile.

    Return a copy of the underlying array of the present tile.

    returns

    The copy as an Array[Int]

    Definition Classes
    LazyConvertedArrayTileTile
  57. def toArrayDouble(): Array[Double]

    Permalink

    Return a copy of the underlying array of the present tile.

    Return a copy of the underlying array of the present tile.

    returns

    The copy as an Array[Double]

    Definition Classes
    LazyConvertedArrayTileTile
  58. def toArrayTile(): ArrayTile

    Permalink

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

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

    returns

    An ArrayTile

    Definition Classes
    LazyConvertedArrayTileTile
  59. def toBytes(): Array[Byte]

    Permalink

    Return the underlying data behind this tile as an array.

    Return the underlying data behind this tile as an array.

    returns

    An array of bytes

    Definition Classes
    LazyConvertedArrayTileTile
  60. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Tile

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