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

geotrellis.raster.op.global.AsArray.scala Maven / Gradle / Ivy

The newest version!
package geotrellis.raster.op.global

import geotrellis._

/**
 * Converts a raster to an integer array.
 */
case class AsArray(r:Op[Raster]) extends Op1(r)({ 
  r => 
    Result(r.toArray)
})

/**
 * Converts a raster to a double array.
 */
case class AsArrayDouble(r:Op[Raster]) extends Op1(r)({
  r =>  
    Result(r.toArrayDouble)
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy