
geotrellis.spark.io.hadoop.HadoopCatalogConfig.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.hadoop
import geotrellis.spark._
case class HadoopCatalogConfig(
/** Compression factor for determining how many tiles can fit into
* one block on a Hadoop-readable file system. */
compressionFactor: Double,
/** Name of file that will contain the metadata under the layer path. */
metadataFileName: String,
/** Creates a subdirectory path based on a layer id. */
layerDataDir: LayerId => String
)
object HadoopCatalogConfig {
/** Sequence file data directory for reading data. */
final val SEQFILE_GLOB = "/*[0-9]*/data"
val DEFAULT =
HadoopCatalogConfig(
compressionFactor = 1.3, // Assume tiles can be compressed 30% (so, compressionFactor - 1)
metadataFileName = "metadata.json",
layerDataDir = { layerId: LayerId => s"${layerId.name}/${layerId.zoom}" }
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy