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

geotrellis.raster.op.transform.Crop.scala Maven / Gradle / Ivy

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

import geotrellis._
import geotrellis.raster._

/**
 * Create a new raster from the data in a sub-extent of an existing raster.
 * 
 * @param      r         Raster to crop
 * @param      extent    Subextent of r that will be the resulting cropped raster's extent.
 */
case class Crop(r:Op[Raster], extent:Extent) 
     extends Op2(r,extent)({
       (r,extent) => Result(CroppedRaster(r,extent))
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy