com.rasterfoundry.backsplash.Config.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backsplash-core_2.12 Show documentation
Show all versions of backsplash-core_2.12 Show documentation
A platform to find, combine and analyze earth imagery at any scale.
package com.rasterfoundry.backsplash
import com.typesafe.config.ConfigFactory
object Config {
private val config = ConfigFactory.load()
object RasterSource {
private val rasterSourceConfig = config.getConfig("rasterSource")
val enableGDAL = rasterSourceConfig.getBoolean("enableGDAL")
}
object parallelism {
/**
* Controls the max level of concurrent effects processed with [[fs2.Stream#parEvalMap]] in
* [[MosaicImplicits]]
**/
private val parallelismConfig = config.getConfig("parallelism")
val streamConcurrency = parallelismConfig.getInt("core.streamConcurrency")
}
object cache {
private val cacheConfig = config.getConfig("cache")
val histogramCacheEnable =
cacheConfig.getBoolean("core.histogramCacheEnable")
}
}