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

geotrellis.raster.split.RasterSplitMethods.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

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