
geotrellis.spark.io.file.FileLayerReindexer.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.10 Show documentation
Show all versions of geotrellis-spark_2.10 Show documentation
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