Packages

o

geotrellis.raster

ShortCellType

object ShortCellType extends DataType with ShortCells with NoNoData with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShortCellType
  2. Product
  3. Equals
  4. NoNoData
  5. NoDataHandling
  6. ShortCells
  7. DataType
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val bits: Int
    Definition Classes
    ShortCellsDataType
  2. def bytes: Int

    Bytes per sample (bits divided by 8).

    Bytes per sample (bits divided by 8).

    returns

    Bytes per sample.

    Definition Classes
    DataType
  3. def contains(other: CellType): Boolean

    Answer true if the present data type contains the other cell type, otherwise false.

    Answer true if the present data type contains the other cell type, otherwise false.

    other

    The other cell type

    returns

    True for containment, false otherwise

    Definition Classes
    DataType
  4. def equalDataType(other: DataType): Boolean

    Determine if two CellType instances have equal DataType component

    Determine if two CellType instances have equal DataType component

    Definition Classes
    ShortCellsDataType
  5. def intersect(other: CellType): CellType

    Compute the intersection of the present data type and the given cell type.

    Compute the intersection of the present data type and the given cell type.

    other

    The other cell type

    returns

    The intersection of this data type and the other cell type

    Definition Classes
    DataType
  6. val isFloatingPoint: Boolean
    Definition Classes
    ShortCellsDataType
  7. def name: String
    Definition Classes
    DataType
  8. def numBytes(size: Int): Int

    Return the number of bytes that would be consumed by the given number of items of the present type.

    Return the number of bytes that would be consumed by the given number of items of the present type.

    size

    The number of items

    returns

    The number of bytes

    Definition Classes
    DataType
  9. def toString(): String

    Return the string representation of this data type.

    Return the string representation of this data type.

    returns

    The string representation

    Definition Classes
    DataType → AnyRef → Any
  10. def union(other: CellType): CellType

    Union only checks to see that the correct bitsize and int vs floating point values are set.

    Union only checks to see that the correct bitsize and int vs floating point values are set. We can be sure that its operations are safe because all data is converted up to int or double where the internal GT "constant" nodata values are used for *all* tile types. So, for instance, if a UserDefinedNoData tile is converted to a different UserDefinedNoData tile, the user defined NoData value will be converted to Int.MinValue/Double.NaN during operations and then converted once more from that value down to the second UserDefinedNoData value.

    other

    The other cell type

    returns

    The union of this data type and the other cell type

    Definition Classes
    DataType
  11. def withDefaultNoData(): ShortCells with NoDataHandling

    Creates a CellType with the default ConstantNoData value.

    Creates a CellType with the default ConstantNoData value. If instance is already one of the default NoData values then a reference to self is returned.

    returns

    CellType with same bit width as this but with the default NoData value.

    Definition Classes
    ShortCellsDataType
  12. def withNoData(noDataValue: Option[Double]): ShortCells with NoDataHandling

    Creates CellType with requested NoData semantics.

    Creates CellType with requested NoData semantics. In case where DataType is not Double noDataValue will be coerced to that type. This may lead to loss of precision but will leave NoData consistent with tile cells.

    noDataValue

    Optional NoData Value

    returns

    DataType unchanged but with NoDataHandling implied by the value of the parameter

    Definition Classes
    ShortCellsDataType