Packages

object Pyramid extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pyramid
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Options(resampleMethod: ResampleMethod = NearestNeighbor, partitioner: Option[Partitioner] = None) extends Product with Serializable

Value Members

  1. def fromLayerRDD[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], thisZoom: Option[Int] = None, endZoom: Option[Int] = None, resampleMethod: ResampleMethod = Average, partitioner: Option[Partitioner] = None)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TilePrototypeMethods[V], arg4: (V) ⇒ TileMergeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): Pyramid[K, V, M]
  2. def fromLayerReader[K, V <: CellGrid[Int], M](layerName: String, layerReader: LayerReader[LayerId], maxZoom: Option[Int] = None, minZoom: Option[Int] = None)(implicit arg0: AvroRecordCodec[K], arg1: Boundable[K], arg2: Encoder[K], arg3: Decoder[K], arg4: ClassTag[K], arg5: SpatialComponent[K], arg6: (V) ⇒ TilePrototypeMethods[V], arg7: (V) ⇒ TileMergeMethods[V], arg8: AvroRecordCodec[V], arg9: ClassTag[V], arg10: Encoder[M], arg11: Decoder[M], arg12: Component[M, Bounds[K]], arg13: Component[M, LayoutDefinition]): Pyramid[K, V, M]
  3. def levelStream[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): Stream[(Int, RDD[(K, V)] with Metadata[M])]
  4. def levelStream[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, options: Options)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): Stream[(Int, RDD[(K, V)] with Metadata[M])]
  5. def levelStream[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, endZoom: Int)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): Stream[(Int, RDD[(K, V)] with Metadata[M])]
  6. def levelStream[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, endZoom: Int, options: Options)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): Stream[(Int, RDD[(K, V)] with Metadata[M])]

    Produce all pyramid levels from start and end zoom.

    Produce all pyramid levels from start and end zoom.

    The first entry in the result stream is the tuple of rdd and startZoom. The RDDs of pyramid levels have a recursive dependency on their base RDD. Because RDDs are lazy take care when consuming this stream. Choose to either persist the base layer or trigger jobs in order to maximize the caching provided by the Spark BlockManager.

    K

    RDD key type (ex: SpatialKey)

    V

    RDD value type (ex: Tile or MultibandTile)

    M

    Metadata associated with the RDD[(K,V)]

    rdd

    the base layer to be resampled

    layoutScheme

    the scheme used to generate next pyramid level

    startZoom

    the pyramid or zoom level of base layer

    endZoom

    the pyramid or zoom level to stop pyramid process

    options

    the options for the pyramid process

    See also

    [up]

  7. def up[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, zoom: Int)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): (Int, RDD[(K, V)] with Metadata[M])
  8. def up[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, zoom: Int, options: Options)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TilePrototypeMethods[V], arg4: (V) ⇒ TileMergeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): (Int, RDD[(K, V)] with Metadata[M])

    Resample base layer to generate the next level "up" in the pyramid.

    Resample base layer to generate the next level "up" in the pyramid.

    Builds the pyramid level with a cell size twice that of the input level---the "next level up" in the pyramid. Each tile is resampled individually, without sampling pixels from neighboring tiles to speed up the process. The algorithm proceeds by reducing the input tiles by half using a resampling method over 2x2 pixel neighborhoods. We support all AggregateResampleMethods as well as NearestNeighbor and Bilinear resampling. Nearest neighbor resampling is, strictly speaking, non-deterministic in this setting, but is included to support categorical layers (e.g., NLCD). Given this method, input tile layers are obviously expected to comprise tiles with even pixel dimensions.

    K

    RDD key type (ex: SpatialKey)

    V

    RDD value type (ex: Tile or MultibandTile)

    M

    Metadata associated with the RDD[(K,V)]

    rdd

    the base layer to be resampled

    layoutScheme

    the scheme used to generate next pyramid level

    zoom

    the pyramid or zoom level of base layer

    options

    the options for the pyramid process

  9. def upLevels[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int)(f: (RDD[(K, V)] with Metadata[M], Int) ⇒ Unit)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): RDD[(K, V)] with Metadata[M]
  10. def upLevels[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, options: Options)(f: (RDD[(K, V)] with Metadata[M], Int) ⇒ Unit)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): RDD[(K, V)] with Metadata[M]
  11. def upLevels[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, endZoom: Int)(f: (RDD[(K, V)] with Metadata[M], Int) ⇒ Unit)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): RDD[(K, V)] with Metadata[M]
  12. def upLevels[K, V <: CellGrid[Int], M](rdd: RDD[(K, V)] with Metadata[M], layoutScheme: LayoutScheme, startZoom: Int, endZoom: Int, options: Options)(f: (RDD[(K, V)] with Metadata[M], Int) ⇒ Unit)(implicit arg0: SpatialComponent[K], arg1: ClassTag[K], arg2: ClassTag[V], arg3: (V) ⇒ TileMergeMethods[V], arg4: (V) ⇒ TilePrototypeMethods[V], arg5: Component[M, LayoutDefinition], arg6: Component[M, Bounds[K]]): RDD[(K, V)] with Metadata[M]
  13. object Options extends Serializable