geotrellis.process

RasterLayer

abstract class RasterLayer extends AnyRef

Represents a Raster Layer that can give detailed information about the Raster it represents, cache the raster, and get the raster cropped to an extent or at a different resolution.

This represents a layer in a bound Context, not an abstract representation of the Raster. In other words, if you are holding one of these objects, then the code that uses it should only execute on the machine that the RasterLayer is from. If you pass around RasterLayers, you will be passing around the cache as well, which is not ideal.

To implement a new RasterLayer, inherit from this class, implement the cache(c:Cache) method for caching the raster layer, and implement the getRaster() (for getting a Raster with it's native RasterExtent) and getRaster(rasterExtent:RasterExtent) (for getting a Raster at a different extent\resolution). Optionally you can override getRaster(extent:Extent), which by default just creates a RasterExtent with that extent snapped to the raster's native resolution.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RasterLayer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RasterLayer(info: RasterLayerInfo)

Abstract Value Members

  1. abstract def cache(c: Cache[String]): Unit

    Attributes
    protected
  2. abstract def getRaster(targetExtent: Option[RasterExtent]): Raster

  3. abstract def getTile(tileCol: Int, tileRow: Int, targetExtent: Option[RasterExtent]): Raster

Concrete 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 asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def cache(): Unit

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getCache: Cache[String]

    Attributes
    protected
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getRaster(extent: Extent): Raster

  15. def getRaster(): Raster

  16. def getTile(tileCol: Int, tileRow: Int): Raster

  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. val info: RasterLayerInfo

  19. def isCached: Boolean

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def setCache(c: Option[Cache[String]]): Unit

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped