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]]