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

geotrellis.raster.MutableRasterData.scala Maven / Gradle / Ivy

The newest version!
package geotrellis.raster

import geotrellis._

/**
 * MutableRasterData is a StrictRasterData whose cells can be written to
 * (mutated).
 */
trait MutableRasterData extends RasterData {
  def mutable = this
  def force = this

  def update(i:Int, z:Int): Unit
  def updateDouble(i:Int, z:Double):Unit

  def set(col:Int, row:Int, value:Int) {
    update(row * cols + col, value)
  }
  def setDouble(col:Int, row:Int, value:Double) {
    updateDouble(row * cols + col, value)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy