geotrellis.raster.split.MultibandTileSplitMethods.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-raster_2.11 Show documentation
Show all versions of geotrellis-raster_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.raster.split
import geotrellis.raster._
import spire.syntax.cfor._
import Split.Options
trait MultibandTileSplitMethods extends SplitMethods[MultibandTile] {
def split(tileLayout: TileLayout, options: Options): Array[MultibandTile] =
(0 until self.bandCount)
.map { b => self.band(b).split(tileLayout, options) }
.transpose
.map(ArrayMultibandTile(_))
.toArray
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy