geotrellis.raster.split.RasterSplitMethods.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
abstract class RasterSplitMethods[T <: CellGrid: (? => SplitMethods[T])] extends SplitMethods[Raster[T]] {
def split(tileLayout: TileLayout, options: Options): Array[Raster[T]] =
self.rasterExtent.split(tileLayout, options)
.zip(self.tile.split(tileLayout, options))
.map { case (re, tile) => Raster(tile, re.extent) }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy