
geotrellis.spark.MultibandTileLayerRDDMethods.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
import geotrellis.raster._
import geotrellis.util.MethodExtensions
import org.apache.spark.rdd._
import scala.reflect.ClassTag
abstract class MultibandTileLayerRDDMethods[K: SpatialComponent: ClassTag] extends MethodExtensions[MultibandTileLayerRDD[K]] {
def convert(cellType: CellType): MultibandTileLayerRDD[K] =
ContextRDD(
self.mapValues(_.convert(cellType)),
self.metadata.copy(cellType = cellType))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy