Combine the given Tile with the present one using the given function.
Combine the given Tile with the present one using the given function.
Converts the cell type of the tile.
Converts the cell type of the tile.
This will immediately iterate over the tile and allocate a new copy of data; this should be a performance consideration.
Execute the given function at each pixel of the present Tile.
Execute the given function at each pixel of the present Tile.
Get value at given coordinates.
Get value at given coordinates.
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.
CellType to be used in interpreting existing cells
Map the given function across the present Tile.
Map the given function across the present Tile. The result is another Tile.
Values can also be mapped with "class-break logic":
import geotrellis.raster.render.BreakMap // Maps break values to result values val m: Map[Int, Int] = ... val t: Tile = ... // BreakMap extends `Function1` t.map(BreakMap.i2i(m))
If Tile
above had an underlying floating CellType,
then the transformation would effectively be from Double => Int
.
Map the given function across the present Tile.
Map the given function across the present Tile. The result is another Tile.
Values can also be mapped with "class-break logic":
import geotrellis.raster.render.BreakMap // Maps break values to result values val m: Map[Double, Double] = ... val t: Tile = ... // BreakMap extends `Function1` t.mapDouble(BreakMap.i2i(m))
If Tile
above had an underlying integer CellType,
then the transformation would effectively be from Int => Double
.
Returns a mutable instance of this tile.
Returns a mutable instance of this tile.
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.
Return the data behind this Tile, or a copy, as an Array of integers.
Return the data behind this Tile, or a copy, as an Array of doubles.
Return the data behind this Tile, or a copy, as an Array of bytes.
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.
The number of columns in the new Tile
The number of rows in the new 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.
The tile to combine with the present one
The integer function
The double function
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.
A function from Int to Unit
A function from Double to Unit
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.
A function from Int to Int
A function from Double to Double
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.
A function from Int to Int
A function from Double to Double
Return tuple of highest and lowest value in raster.
Return tuple of highest and lowest value in raster.
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.
Return tuple of highest and lowest value in raster.
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).
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).
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.
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.
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.
A function from Int to Int
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.
A function from Double to Double
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.
Old minimum value
Old maximum value
New minimum value
New maximum value
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.
Old minimum value
Old maximum value
New minimum value
New maximum value
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.
The size of the grid, e.g.
The size of the grid, e.g. cols * rows.
Base trait for a Tile.