object Ingest
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Ingest
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
apply[T, K](sourceTiles: RDD[(T, Tile)], destCRS: CRS, layoutScheme: LayoutScheme, pyramid: Boolean = false, cacheLevel: StorageLevel = StorageLevel.NONE, resampleMethod: ResampleMethod = NearestNeighbor, partitioner: Option[Partitioner] = None, bufferSize: Option[Int] = None, maxZoom: Option[Int] = None, tileSize: Option[Int] = None)(sink: (TileLayerRDD[K], Int) ⇒ Unit)(implicit arg0: ClassTag[T], arg1: (T) ⇒ TilerKeyMethods[T, K], arg2: Component[T, ProjectedExtent], arg3: SpatialComponent[K], arg4: Boundable[K], arg5: ClassTag[K]): Unit
Represents the ingest process.
Represents the ingest process. An ingest process produces a layer from a set of input rasters.
The ingest process has the following steps:
- Reproject tiles to the desired CRS: (CRS, RDD[(Extent, CRS), Tile)]) -> RDD[(Extent, Tile)]
- Determine the appropriate layer meta data for the layer. (CRS, LayoutScheme, RDD[(Extent, Tile)]) -> LayerMetadata)
- Resample the rasters into the desired tile format. RDD[(Extent, Tile)] => TileLayerRDD[K]
- Optionally pyramid to top zoom level, calling sink at each level
Ingesting is abstracted over the following variants:
- The source of the input tiles, which are represented as an RDD of (T, Tile) tuples, where T: Component[*, ProjectedExtent]
- The LayoutScheme which will be used to determine how to retile the input tiles.
- T
type of input tile key
- K
type of output tile key, must have SpatialComponent
- sourceTiles
RDD of tiles that have Extent and CRS
- destCRS
CRS to be used by the output layer
- layoutScheme
LayoutScheme to be used by output layer
- pyramid
Pyramid up to level 1, sink function will be called for each level
- cacheLevel
Storage level to use for RDD caching
- sink
function that utilize the result of the ingest, assumed to force materialization of the RDD