final case class FloatRawArrayTile(arr: Array[Float], cols: Int, rows: Int) extends FloatArrayTile with Product with Serializable
The FloatRawArrayTile derived from FloatArrayTile.
- Alphabetic
- By Inheritance
- FloatRawArrayTile
- Product
- Equals
- FloatArrayTile
- MutableArrayTile
- ArrayTile
- Tile
- MappableTile
- MacroMappableTile
- IterableTile
- MacroIterableTile
- CellGrid
- GridIntegral
- Grid
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(i: Int): Int
Fetch the datum at the given index in the array.
Fetch the datum at the given index in the array.
- i
The index
- returns
The datum found at the index
- Definition Classes
- FloatRawArrayTile → ArrayTile
-
def
applyDouble(i: Int): Double
Fetch the datum at the given index in the array.
Fetch the datum at the given index in the array.
- i
The index
- returns
The datum found at the index
- Definition Classes
- FloatRawArrayTile → ArrayTile
- val arr: Array[Float]
-
val
array: Array[Float]
- Definition Classes
- FloatArrayTile
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
cellType: FloatCellType.type
- Definition Classes
- FloatRawArrayTile → FloatArrayTile → CellGrid
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- FloatRawArrayTile → MutableArrayTile → ArrayTile → Tile → Grid
-
def
combine(other: Tile)(f: (Int, Int) ⇒ Int): Tile
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function.
Combine the cells of an ArrayTile and a Tile into a new Tile using the given 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
- returns
The result, an Tile
-
def
combine(other: ArrayTile)(f: (Int, Int) ⇒ Int): ArrayTile
Combine two ArrayTiles' cells into new cells using the given integer function.
Combine two ArrayTiles' cells into new cells using the given integer function. For every (x, y) cell coordinate, get each of the ArrayTiles' integer values, map them to a new value, and assign it to the output's (x, y) cell.
- other
The other ArrayTile
- f
A function from (Int, Int) to Int
- returns
The result, an ArrayTile
- Definition Classes
- ArrayTile
-
def
combineDouble(other: Tile)(f: (Double, Double) ⇒ Double): Tile
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function.
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function. For every (x, y) cell coordinate, get 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 (Double, Double) to Double
- returns
The result, an Tile
-
def
combineDouble(other: ArrayTile)(f: (Double, Double) ⇒ Double): ArrayTile
Combine two ArrayTiles' cells into new cells using the given double function.
Combine two ArrayTiles' cells into new cells using the given double function. For every (x, y) cell coordinate, get each of the ArrayTiles' double values, map them to a new value, and assign it to the output's (x, y) cell.
- other
The other ArrayTile
- f
A function from (Double, Double) to Double
- returns
The result, an ArrayTile
- Definition Classes
- ArrayTile
-
def
convert(targetCellType: CellType): ArrayTile
Returns a Tile equivalent to this ArrayTile, except with cells of the given type.
-
def
copy: ArrayTile
Return a copy of the present FloatArrayTile.
Return a copy of the present FloatArrayTile.
- returns
The copy
- Definition Classes
- FloatArrayTile → ArrayTile
-
def
dimensions: Dimensions[Int]
- Definition Classes
- GridIntegral → Grid
-
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.
-
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
-
def
dualForeach(f: (Int) ⇒ Unit)(g: (Double) ⇒ Unit): Unit
Execute a function at each pixel of a Tile.
-
def
dualMap(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile
Map one of the two given functions across the Tile to produce a new one.
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
Check for equality between the present ArrayTile and any other object.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
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
-
def
foreach(f: (Int) ⇒ Unit): Unit
Execute a function on each cell of the ArrayTile.
-
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
-
def
foreachDouble(f: (Double) ⇒ Unit): Unit
Execute a function on each cell of the ArrayTile.
-
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
-
def
foreachDoubleVisitor(visitor: DoubleTileVisitor): Unit
Execute an DoubleTileVisitor at each cell of the ArrayTile.
Execute an DoubleTileVisitor at each cell of the ArrayTile.
- visitor
A DoubleTileVisitor
- Definition Classes
- ArrayTile → MacroIterableTile
-
def
foreachIntVisitor(visitor: IntTileVisitor): Unit
Execute an IntTileVisitor at each cell of the ArrayTile.
Execute an IntTileVisitor at each cell of the ArrayTile.
- visitor
An IntTileVisitor
- Definition Classes
- ArrayTile → MacroIterableTile
-
def
get(col: Int, row: Int): Int
Fetch the datum at the given column and row of the ArrayTile.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDouble(col: Int, row: Int): Double
Fetch the datum at the given column and row of the ArrayTile.
-
def
interpretAs(newCellType: CellType): Tile
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.
- newCellType
CellType to be used in interpreting existing cells
- Definition Classes
- FloatArrayTile → ArrayTile → Tile
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNoDataTile: Boolean
- Definition Classes
- Tile
-
def
map(f: (Int) ⇒ Int): Tile
Map each cell in the given tile to a new one, using the given function.
-
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
-
def
mapDouble(f: (Double) ⇒ Double): Tile
Map each cell in the given tile to a new one, using the given function.
-
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
-
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
- ArrayTile → MacroMappableTile
-
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.
-
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.
-
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
- ArrayTile → MacroMappableTile
-
def
mutable: MutableArrayTile
Returns a mutable instance of this tile.
Returns a mutable instance of this tile.
- Definition Classes
- MutableArrayTile → Tile
- Note
When the underlying class is an instance of MutableArrayTile it will return itself without performing a copy. This is used internally as a performance optimization when the ownership of the tile is controlled.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
rescale(newMin: Double, newMax: Double): Tile
Rescale the values in this Tile so that they are between the two given values.
-
def
rescale(newMin: Int, newMax: Int): Tile
Rescale the values in this Tile so that they are between the two given values.
-
val
rows: Int
- Definition Classes
- FloatRawArrayTile → MutableArrayTile → ArrayTile → Tile → Grid
-
def
set(col: Int, row: Int, value: Int): Unit
Set the value of the raster at the given column and row with the given value.
Set the value of the raster at the given column and row with the given value.
- col
The column
- row
The row
- value
The value
- Definition Classes
- MutableArrayTile
-
def
setDouble(col: Int, row: Int, value: Double): Unit
Set the value of the raster at the given column and row with the given value.
Set the value of the raster at the given column and row with the given value.
- col
The column
- row
The row
- value
The value
- Definition Classes
- MutableArrayTile
-
def
size: Int
- Definition Classes
- GridIntegral → Grid
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toArray(): Array[Int]
Return a copy of the underlying array of the present ArrayTile.
-
def
toArrayDouble(): Array[Double]
Return a copy of the underlying array of the present ArrayTile.
-
def
toArrayTile(): ArrayTile
Return the ArrayTile equivalent of this ArrayTile.
-
def
toBytes(): Array[Byte]
Convert the present FloatArrayTile to an array of bytes and return that array.
Convert the present FloatArrayTile to an array of bytes and return that array.
- returns
An array of bytes
- Definition Classes
- FloatArrayTile → Tile
-
def
toList: List[Int]
Return the underlying array of this ArrayTile as a list.
-
def
toListDouble: List[Double]
Return the under-laying array of this ArrayTile as a list.
-
def
toString(): String
- Definition Classes
- ArrayTile → AnyRef → Any
-
def
update(i: Int, z: Int): Unit
Update the datum at the given index in the array.
Update the datum at the given index in the array.
- i
The index
- z
The value to place at that index
- Definition Classes
- FloatRawArrayTile → MutableArrayTile
-
def
update(colOffset: Int, rowOffset: Int, update: Tile): Unit
Paste the given Tile into the present one starting at the given column and row offsets.
Paste the given Tile into the present one starting at the given column and row offsets.
- colOffset
The column offset
- rowOffset
The row offset
- update
The source tile
- Definition Classes
- MutableArrayTile
-
def
updateDouble(i: Int, z: Double): Unit
Update the datum at the given index in the array.
Update the datum at the given index in the array.
- i
The index
- z
The value to place at that index
- Definition Classes
- FloatRawArrayTile → MutableArrayTile
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withNoData(noDataValue: Option[Double]): FloatArrayTile
- Definition Classes
- FloatArrayTile → ArrayTile → Tile