All Downloads are FREE. Search and download functionalities are using the official Maven repository.

geotrellis.raster.split.MultibandTileSplitMethods.scala Maven / Gradle / Ivy

Go to download

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