All Downloads are FREE. Search and download functionalities are using the official Maven repository.

geotrellis.spark.partition.SpatiallyPartitionMethods.scala Maven / Gradle / Ivy

Go to download

GeoTrellis is an open source geographic data processing engine for high performance applications.

The newest version!
package geotrellis.spark.partition

import geotrellis.spark._
import geotrellis.util._

import org.apache.spark.rdd._

import scala.reflect.ClassTag

abstract class SpatiallyPartitionMethods[
    K: Boundable: PartitionerIndex: ClassTag,
    V: ClassTag,
    M: GetComponent[?, Bounds[K]]
  ](val self: RDD[(K, V)] with Metadata[M]) extends MethodExtensions[RDD[(K, V)] with Metadata[M]] {
  def spatiallyPartition(): RDD[(K, V)] with Metadata[Bounds[K]] =
    SpatiallyPartition(self)

  def spatiallyPartition(filterBounds: KeyBounds[K]): RDD[(K, V)] with Metadata[Bounds[K]] =
    SpatiallyPartition(self, filterBounds)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy