Packages

c

geotrellis.raster

UShortUserDefinedNoDataCellType

case class UShortUserDefinedNoDataCellType(noDataValue: Short) extends DataType with UShortCells with UserDefinedNoData[Short] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UShortUserDefinedNoDataCellType
  2. Product
  3. Equals
  4. UserDefinedNoData
  5. HasNoData
  6. NoDataHandling
  7. UShortCells
  8. DataType
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UShortUserDefinedNoDataCellType(noDataValue: Short)

Value Members

  1. val bits: Int
    Definition Classes
    UShortCellsDataType
  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
    UShortCellsDataType
  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
    UShortCellsDataType
  7. def name: String
    Definition Classes
    DataType
  8. val noDataValue: Short

    The no data value as represented in the JVM in the underlying cell.

    The no data value as represented in the JVM in the underlying cell. If unsigned types are involved then this value may be an overflow representation, and widenedNoData should be used.

    Definition Classes
    UShortUserDefinedNoDataCellTypeHasNoData
  9. 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
  10. 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
  11. 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
  12. def widenedNoData(implicit ev: Numeric[Short]): WideIntNoData
  13. def withDefaultNoData(): UShortCells 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
    UShortCellsDataType
  14. def withNoData(noDataValue: Option[Double]): UShortCells 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
    UShortCellsDataType