
geotrellis.spark.tiling.Implicits.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark_2.11 Show documentation
Show all versions of geotrellis-spark_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.tiling
import geotrellis.spark._
import geotrellis.vector._
import geotrellis.raster._
import geotrellis.raster.merge._
import geotrellis.raster.prototype._
import geotrellis.util._
import org.apache.spark.rdd._
import scala.reflect.ClassTag
object Implicits extends Implicits
trait Implicits {
implicit class withTilerMethods[K, V <: CellGrid: ClassTag: ? => TileMergeMethods[V]: ? => TilePrototypeMethods[V]](self: RDD[(K, V)])
extends TilerMethods[K, V](self)
implicit class withTupleTilerKeyMethods[K: SpatialComponent](val self: (K, Extent)) extends TilerKeyMethods[(K, Extent), K] {
def extent = self._2
def translate(spatialKey: SpatialKey): K = self._1.setComponent(spatialKey)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy