object Pyramid extends Serializable
- Alphabetic
- By Inheritance
- Pyramid
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class Options(resampleMethod: ResampleMethod = NearestNeighbor, partitioner: Option[Partitioner] = None) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- 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]
- 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]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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])]
- 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])]
- 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])]
-
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
andstartZoom
. 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]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- 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])
-
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
- 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]
- 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]
- 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]
- 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]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object Options extends Serializable