class LayoutTileSource[K] extends AnyRef
Reads tiles by key from a RasterSource as keyed by a LayoutDefinition
- Note
It is required that the RasterSource is pixel aligned with the LayoutDefinition
- Alphabetic
- By Inheritance
- LayoutTileSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LayoutTileSource(source: RasterSource, layout: LayoutDefinition, tileKeyTransform: (SpatialKey) ⇒ K)(implicit arg0: SpatialComponent[K])
- source
raster source that can be queried by bounding box
- layout
definition of a tile grid over the pixel grid
- tileKeyTransform
defines the key transformation you want to apply to the spatially tiled data
Value Members
-
def
keyedRasterRegions(): Iterator[(K, RasterRegion)]
All intersecting RasterRegions with their respective keys
-
def
keys: Set[K]
Set of keys that can be read from this tile source
- val layout: LayoutDefinition
- def rasterRegionForKey(key: K): Option[RasterRegion]
-
def
read(key: K, bands: Seq[Int]): Option[MultibandTile]
Read tile according to key.
Read tile according to key. If tile area intersects source partially the non-intersecting pixels will be filled with NODATA. If tile area does not intersect source None will be returned.
- def read(key: K): Option[MultibandTile]
-
def
readAll(): Iterator[(K, MultibandTile)]
Read all available tiles
- def readAll(keys: Iterator[K]): Iterator[(K, MultibandTile)]
-
def
readAll(keys: Iterator[K], bands: Seq[Int]): Iterator[(K, MultibandTile)]
Read multiple tiles according to key.
Read multiple tiles according to key. If each tile area intersects source partially the non-intersecting pixels will be filled with NODATA. If tile area does not intersect source it will be excluded from result iterator.
- val source: RasterSource
- def sourceColOffset: Long
- def sourceRowOffset: Long
- val tileKeyTransform: (SpatialKey) ⇒ K