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

geotrellis.spark.io.file.FileLayerReindexer.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.io.file

import geotrellis.spark._
import geotrellis.spark.io._
import geotrellis.spark.io.avro._
import geotrellis.spark.io.index._

import org.apache.spark.SparkContext
import spray.json.JsonFormat

import scala.reflect.ClassTag

object FileLayerReindexer {
  def apply(attributeStore: FileAttributeStore)(implicit sc: SparkContext): LayerReindexer[LayerId] = {
    val layerReader  = FileLayerReader(attributeStore)
    val layerWriter  = FileLayerWriter(attributeStore)
    val layerDeleter = FileLayerDeleter(attributeStore)
    val layerCopier  = FileLayerCopier(attributeStore)

    GenericLayerReindexer[FileLayerHeader](attributeStore, layerReader, layerWriter, layerDeleter, layerCopier)
  }

  def apply(catalogPath: String)(implicit sc: SparkContext): LayerReindexer[LayerId] =
    apply(FileAttributeStore(catalogPath))

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy