geotrellis.raster

LazyConvert

final case class LazyConvert(data: RasterData, typ: RasterType) extends RasterData with Product with Serializable

LazyConvert represents a lazily-applied conversion to any type.

Note

If you care converting to a RasterType with less bits than the type of the underlying data, you are responsible for managing overflow. This convert does not do any casting; therefore converting from a TypeInt to TypeByte could still return values greater than 127 from apply().

Linear Supertypes
Product, Equals, RasterData, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LazyConvert
  2. Product
  3. Equals
  4. RasterData
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LazyConvert(data: RasterData, typ: RasterType)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def alloc(cols: Int, rows: Int): MutableRasterData

    Definition Classes
    LazyConvertRasterData
  7. def apply(i: Int): Int

    Definition Classes
    LazyConvertRasterData
  8. def applyDouble(i: Int): Double

    Definition Classes
    LazyConvertRasterData
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def cols: Int

    Definition Classes
    LazyConvertRasterData
  12. def combine(other: RasterData)(f: (Int, Int) ⇒ Int): RasterData

    Combine two RasterData's cells into new cells using the given integer function.

    Combine two RasterData's cells into new cells using the given integer function. For every (x,y) cell coordinate, get each RasterData's integer value, map them to a new value, and assign it to the output's (x,y) cell.

    Definition Classes
    RasterData
  13. def combineDouble(other: RasterData)(f: (Double, Double) ⇒ Double): RasterData

    Combine two RasterData's cells into new cells using the given double function.

    Combine two RasterData's cells into new cells using the given double function. For every (x,y) cell coordinate, get each RasterData's double value, map them to a new value, and assign it to the output's (x,y) cell.

    Definition Classes
    RasterData
  14. def convert(typ: RasterType): RasterData

    Definition Classes
    RasterData
  15. def copy: RasterData

    Definition Classes
    LazyConvertRasterData
  16. val data: RasterData

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(other: Any): Boolean

    Definition Classes
    RasterData → AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def force(): RasterData

    Definition Classes
    LazyConvertRasterData
  21. def foreach(f: (Int) ⇒ Unit): Unit

    For every cell in the given raster, run the given integer function.

    For every cell in the given raster, run the given integer function.

    The order of the traversal from the lowest to highest columns, across each row, but this should probably not be relied upon. In the future we'd like to be able to parallelize foreach.

    Definition Classes
    RasterData
  22. def foreachDouble(f: (Double) ⇒ Unit): Unit

    For every cell in the given raster, run the given double function.

    For every cell in the given raster, run the given double function.

    The order of the traversal from the lowest to highest columns, across each row, but this should probably not be relied upon. In the future we'd like to be able to parallelize foreach.

    Definition Classes
    RasterData
  23. def get(col: Int, row: Int): Int

    Definition Classes
    RasterData
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def getDouble(col: Int, row: Int): Double

    Definition Classes
    RasterData
  26. final def getType: RasterType

    Definition Classes
    LazyConvertRasterData
  27. def isFloat: Boolean

    Definition Classes
    RasterData
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isLazy: Boolean

    Definition Classes
    RasterData
  30. final def length: Int

    Definition Classes
    LazyConvertRasterData
  31. def lengthLong: Int

    Definition Classes
    RasterData
  32. def map(f: (Int) ⇒ Int): RasterData

    Map each cell in the given raster to a new one, using the given function.

    Map each cell in the given raster to a new one, using the given function.

    Definition Classes
    RasterData
  33. def mapDouble(f: (Double) ⇒ Double): RasterData

    Map each cell in the given raster to a new one, using the given function.

    Map each cell in the given raster to a new one, using the given function.

    Definition Classes
    RasterData
  34. def mutable(): MutableRasterData

    Definition Classes
    LazyConvertRasterData
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def rows: Int

    Definition Classes
    LazyConvertRasterData
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toArray: Array[Int]

    Definition Classes
    LazyConvertRasterData
  41. def toArrayByte: Array[Byte]

    Definition Classes
    LazyConvertRasterData
  42. def toArrayDouble: Array[Double]

    Definition Classes
    LazyConvertRasterData
  43. def toList: List[Int]

    Definition Classes
    RasterData
  44. def toListDouble: List[Double]

    Definition Classes
    RasterData
  45. val typ: RasterType

  46. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def warp(current: RasterExtent, target: RasterExtent): RasterData

    Definition Classes
    LazyConvertRasterData

Inherited from Product

Inherited from Equals

Inherited from RasterData

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped