object ToSpatial
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ToSpatial
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def apply[K, V, M[_]](rdd: RDD[(K, V)] with Metadata[M[K]])(implicit arg0: SpatialComponent[K], arg1: TemporalComponent[K], arg2: Component[M[K], Bounds[K]], arg3: Functor[M]): RDD[(SpatialKey, V)] with Metadata[M[SpatialKey]]
- def apply[K, V, M[_]](rdd: RDD[(K, V)] with Metadata[M[K]], mergeFun: Option[(V, V) ⇒ V], partitioner: Option[Partitioner] = None)(implicit arg0: ClassTag[K], arg1: SpatialComponent[K], arg2: TemporalComponent[K], arg3: Component[M[K], Bounds[K]], arg4: ClassTag[V], arg5: Functor[M]): RDD[(SpatialKey, V)] with Metadata[M[SpatialKey]]
-
def
apply[K, V, M[_]](rdd: RDD[(K, V)] with Metadata[M[K]], instant: Long)(implicit arg0: SpatialComponent[K], arg1: TemporalComponent[K], arg2: Component[M[K], Bounds[K]], arg3: Functor[M]): RDD[(SpatialKey, V)] with Metadata[M[SpatialKey]]
Restrict a tile layer and its metadata to two spatial dimensions.
Restrict a tile layer and its metadata to two spatial dimensions.
To project not only Tiles, but also Metadata (M) information and to get a consistent result type, it is possible to define additional constraints on Metadata. M should depend on a K type (M[K]), and two type classes should be provided: geotrellis.util.Component, to extract key bounds from M[K], and cats.Functor to map M[K] to M[SpatialKey].
For those reading the source code directly,
K: λ[α => Component[M[α], Bounds[α]]
is further syntax sugar on top of the usual
K: ...
pattern. It expands into the following Scala implicit evidences:
ev0: Component[M[K], Bounds[K]]
K: ... }}} It expands into the following Scala implicit evidences:
ev0: Component[M[K], Bounds[K]]