object ByteArrayTile extends Serializable
The companion object for the ByteArrayTile type.
- Alphabetic
- By Inheritance
- ByteArrayTile
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(arr: Array[Byte], cols: Int, rows: Int, noDataValue: Byte): ByteArrayTile
Create a new ByteArrayTile from an array of bytes, a number of columns, and a number of rows.
Create a new ByteArrayTile from an array of bytes, a number of columns, and a number of rows.
- arr
An array of bytes
- cols
The number of columns
- rows
The number of rows
- noDataValue
NODATA value
- returns
A new ByteArrayTile
-
def
apply(arr: Array[Byte], cols: Int, rows: Int, noDataValue: Option[Byte]): ByteArrayTile
Create a new ByteArrayTile from an array of integers, a number of columns, and a number of rows.
Create a new ByteArrayTile from an array of integers, a number of columns, and a number of rows.
- arr
An array of bytes
- cols
The number of columns
- rows
The number of rows
- noDataValue
Optional NODATA value
- returns
A new ByteArrayTile
-
def
apply(arr: Array[Byte], cols: Int, rows: Int, cellType: ByteCells with NoDataHandling): ByteArrayTile
Create a new ByteArrayTile from a given array of bytes with the given number of columns and rows, with the NODATA value inherited from the specified cell type.
Create a new ByteArrayTile from a given array of bytes with the given number of columns and rows, with the NODATA value inherited from the specified cell type.
- arr
An array of bytes
- cols
The number of columns
- rows
The number of rows
- cellType
The cell type from which to derive the NODATA
- returns
The new ByteArrayTile
-
def
apply(arr: Array[Byte], cols: Int, rows: Int): ByteArrayTile
Create a new ByteArrayTile from a given array of bytes with the given number of columns and rows.
Create a new ByteArrayTile from a given array of bytes with the given number of columns and rows.
- arr
An array of bytes
- cols
The number of columns
- rows
The number of rows
- returns
The new ByteArrayTile
-
def
empty(cols: Int, rows: Int, cellType: ByteCells with NoDataHandling): ByteArrayTile
Produce an empty, new ByteArrayTile.
Produce an empty, new ByteArrayTile. The NODATA type for the tile is derived from the given cell type.
- cols
The number of columns
- rows
The number of rows
- cellType
The cell type from which to derive the NODATA
- returns
The new ByteArrayTile
-
def
empty(cols: Int, rows: Int): ByteArrayTile
Produce an empty, new ByteArrayTile.
Produce an empty, new ByteArrayTile.
- cols
The number of columns
- rows
The number of rows
- returns
The new ByteArrayTile
-
def
fill(v: Byte, cols: Int, rows: Int, cellType: ByteCells with NoDataHandling): ByteArrayTile
Produce a new ByteArrayTile and fill it with the given value.
Produce a new ByteArrayTile and fill it with the given value. The NODATA value for the tile is inherited from the given cell type.
- v
The value to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- cellType
The cell type from which to derive the NODATA
- returns
The new ByteArrayTile
-
def
fill(v: Byte, cols: Int, rows: Int): ByteArrayTile
Produce a new ByteArrayTile and fill it with the given value.
Produce a new ByteArrayTile and fill it with the given value.
- v
The value to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- returns
The new ByteArrayTile
-
def
fromBytes(bytes: Array[Byte], cols: Int, rows: Int, cellType: ByteCells with NoDataHandling): ByteArrayTile
Produce a new ByteArrayTile from an array of bytes.
Produce a new ByteArrayTile from an array of bytes. The NODATA value for the tile is inherited from the given cell type.
- bytes
the values to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- cellType
The cell type from which to derive the NODATA
- returns
The new ByteArrayTile
-
def
fromBytes(bytes: Array[Byte], cols: Int, rows: Int): ByteArrayTile
Produce a new ByteArrayTile from an array of bytes.
Produce a new ByteArrayTile from an array of bytes.
- bytes
the values to fill into the new tile
- cols
The number of columns
- rows
The number of rows
- returns
The new ByteArrayTile
-
def
ofDim(cols: Int, rows: Int, cellType: ByteCells with NoDataHandling): ByteArrayTile
Produce a ByteArrayTile of the specified dimensions.
Produce a ByteArrayTile of the specified dimensions. The NODATA value for the tile is inherited from the given cell type.
- cols
The number of columns
- rows
The number of rows
- cellType
The cell type from which to derive the NODATA
- returns
The new ByteArrayTile
-
def
ofDim(cols: Int, rows: Int): ByteArrayTile
Produce a ByteArrayTile of the specified dimensions.
Produce a ByteArrayTile of the specified dimensions.
- cols
The number of columns
- rows
The number of rows
- returns
The new ByteArrayTile