geotrellis.raster

BitArrayTile

Related Docs: object BitArrayTile | package raster

final case class BitArrayTile(array: Array[Byte], cols: Int, rows: Int) extends MutableArrayTile with Product with Serializable

ArrayTile based on an Array[Byte] as a bitmask; values are 0 and 1. Thus, there are 8 boolean (0 / 1) values per byte in the array. For example, Array(11, 9) corresponds to (0 0 0 0 1 0 1 1), (0 0 0 0 1 0 0 1) which means that we have 5 cells set to 1 and 11 cells set to 0.

Note that unlike the other array-based raster data objects we need to be explicitly told our size, since length=7 and length=8 will both need to allocate an Array[Byte] with length=1.

Linear Supertypes
Product, Equals, MutableArrayTile, ArrayTile, Serializable, Serializable, Tile, MappableTile[Tile], MacroMappableTile[Tile], IterableTile, MacroIterableTile, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BitArrayTile
  2. Product
  3. Equals
  4. MutableArrayTile
  5. ArrayTile
  6. Serializable
  7. Serializable
  8. Tile
  9. MappableTile
  10. MacroMappableTile
  11. IterableTile
  12. MacroIterableTile
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BitArrayTile(array: Array[Byte], cols: Int, rows: Int)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def apply(i: Int): Int

    Definition Classes
    BitArrayTileArrayTile
  5. def applyDouble(i: Int): Double

    Definition Classes
    BitArrayTileArrayTile
  6. val array: Array[Byte]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asciiDraw(): String

    Return ascii art of this raster.

    Return ascii art of this raster.

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

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

    Return ascii art of a range from this raster.

    Return ascii art of a range from this raster.

    Definition Classes
    Tile
  11. val cellType: TypeBit.type

    Definition Classes
    BitArrayTileTile
  12. def clone(): AnyRef

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

    Definition Classes
    BitArrayTileTile
  14. def combine(other: Tile)(f: (Int, Int) ⇒ Int): Tile

    Definition Classes
    ArrayTileTile
  15. def combine(other: ArrayTile)(f: (Int, Int) ⇒ Int): ArrayTile

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

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

    Definition Classes
    ArrayTile
  16. def combineDouble(other: Tile)(f: (Double, Double) ⇒ Double): Tile

    Definition Classes
    ArrayTileTile
  17. def combineDouble(other: ArrayTile)(f: (Double, Double) ⇒ Double): ArrayTile

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

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

    Definition Classes
    ArrayTile
  18. def convert(cellType: CellType): Tile

    Definition Classes
    ArrayTileTile
  19. def copy: ByteArrayTile

    Definition Classes
    BitArrayTileArrayTile
  20. def crop(srcExtent: Extent, extent: Extent): Tile

    Definition Classes
    Tile
  21. def crop(gb: GridBounds): Tile

    Definition Classes
    Tile
  22. def crop(colMin: Int, rowMin: Int, colMax: Int, rowMax: Int): Tile

    Definition Classes
    Tile
  23. def crop(cols: Int, rows: Int): Tile

    Definition Classes
    Tile
  24. lazy val dimensions: (Int, Int)

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

    Definition Classes
    Tile
  26. def dualCombine(r2: Tile)(f: (Int, Int) ⇒ Int)(g: (Double, Double) ⇒ Double): Tile

    Definition Classes
    Tile
  27. def dualForeach(f: (Int) ⇒ Unit)(g: (Double) ⇒ Unit): Unit

    Definition Classes
    Tile
  28. def dualMap(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Definition Classes
    Tile
  29. def dualMapIfSet(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Definition Classes
    Tile
  30. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def equals(other: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. 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 (TypeFloat, TypeDouble). Calling findMinMax on rasters of those types will give the integer min and max of the rounded values of their cells.

  34. 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
  35. def foreach(f: (Int) ⇒ Unit): Unit

    Definition Classes
    ArrayTileTile
  36. macro def foreach(f: (Int, Int, Int) ⇒ Unit): Unit

    Definition Classes
    IterableTile
  37. def foreachDouble(f: (Double) ⇒ Unit): Unit

    Definition Classes
    ArrayTileTile
  38. macro def foreachDouble(f: (Int, Int, Double) ⇒ Unit): Unit

    Definition Classes
    IterableTile
  39. def foreachDoubleVisitor(visitor: DoubleTileVisitor): Unit

    Definition Classes
    ArrayTile → MacroIterableTile
  40. def foreachIntVisitor(visitor: IntTileVisitor): Unit

    Definition Classes
    ArrayTile → MacroIterableTile
  41. def get(col: Int, row: Int): Int

    Get value at given coordinates.

    Get value at given coordinates.

    Definition Classes
    ArrayTileTile
  42. final def getClass(): Class[_]

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

    Get value at given coordinates.

    Get value at given coordinates.

    Definition Classes
    ArrayTileTile
  44. val gridBounds: GridBounds

    Definition Classes
    Tile
  45. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  46. 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.

    Definition Classes
    BitArrayTileArrayTileTile
  47. macro def map(f: (Int, Int, Int) ⇒ Int): Tile

    Definition Classes
    MappableTile
  48. 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.

    Definition Classes
    BitArrayTileArrayTileTile
  49. macro def mapDouble(f: (Int, Int, Double) ⇒ Double): Tile

    Definition Classes
    MappableTile
  50. def mapDoubleMapper(mapper: DoubleTileMapper): Tile

    Definition Classes
    ArrayTile → MacroMappableTile
  51. def mapIfSet(f: (Int) ⇒ Int): Tile

    Definition Classes
    Tile
  52. def mapIfSetDouble(f: (Double) ⇒ Double): Tile

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

    Definition Classes
    ArrayTile → MacroMappableTile
  54. def mutable: MutableArrayTile

    Create a mutable copy of this tile

    Create a mutable copy of this tile

    Definition Classes
    MutableArrayTileTile
  55. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  56. 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 mininum value

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

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

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

    Definition Classes
    Tile
  58. final def notify(): Unit

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

    Definition Classes
    AnyRef
  60. def resample(current: Extent, target: RasterExtent, method: InterpolationMethod): ArrayTile

    Definition Classes
    BitArrayTileArrayTileTile
  61. def resample(targetCols: Int, targetRows: Int): Tile

    Only changes the resolution

    Only changes the resolution

    Definition Classes
    Tile
  62. def resample(source: Extent, targetCols: Int, targetRows: Int, method: InterpolationMethod): Tile

    Definition Classes
    Tile
  63. def resample(source: Extent, targetCols: Int, targetRows: Int): Tile

    Definition Classes
    Tile
  64. def resample(source: Extent, target: Extent, method: InterpolationMethod): Tile

    Definition Classes
    Tile
  65. def resample(source: Extent, target: Extent): Tile

    Definition Classes
    Tile
  66. def resample(source: Extent, target: RasterExtent): Tile

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

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

    Definition Classes
    Tile
  69. val rows: Int

    Definition Classes
    BitArrayTileTile
  70. def set(col: Int, row: Int, value: Int): Unit

    Definition Classes
    MutableArrayTile
  71. def setDouble(col: Int, row: Int, value: Double): Unit

    Definition Classes
    MutableArrayTile
  72. lazy val size: Int

    Definition Classes
    Tile
  73. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    ArrayTileTile
  75. def toArrayDouble(): Array[Double]

    Definition Classes
    ArrayTileTile
  76. def toArrayTile(): ArrayTile

    Definition Classes
    ArrayTileTile
  77. def toBytes(): Array[Byte]

    Definition Classes
    BitArrayTileArrayTileTile
  78. def toList: List[Int]

    Definition Classes
    ArrayTile
  79. def toListDouble: List[Double]

    Definition Classes
    ArrayTile
  80. def update(i: Int, z: Int): Unit

    Definition Classes
    BitArrayTileMutableArrayTile
  81. def updateDouble(i: Int, z: Double): Unit

    Definition Classes
    BitArrayTileMutableArrayTile
  82. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from MutableArrayTile

Inherited from ArrayTile

Inherited from Serializable

Inherited from Serializable

Inherited from Tile

Inherited from MappableTile[Tile]

Inherited from MacroMappableTile[Tile]

Inherited from IterableTile

Inherited from MacroIterableTile

Inherited from AnyRef

Inherited from Any

Ungrouped