abstract
class
RasterLayer extends AnyRef
Abstract Value Members
-
abstract
def
cache(c: Cache[String]): Unit
-
abstract
def
getRaster(targetExtent: Option[RasterExtent]): Tile
-
abstract
def
getTile(tileCol: Int, tileRow: Int, targetExtent: Option[RasterExtent]): Tile
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
cache(): Unit
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
getCache: Cache[String]
-
final
def
getClass(): Class[_]
-
def
getRaster(extent: Extent): Tile
-
def
getRaster(): Tile
-
def
getTile(tileCol: Int, tileRow: Int): Tile
-
def
hashCode(): Int
-
-
def
isCached: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
setCache(c: Option[Cache[String]]): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
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.
(Since version Geotrellis Version 0.10) geotrellis-engine has been deprecated