geotrellis.raster.GridExtent.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
import geotrellis.vector.Extent
/**
* The [[GridExtent]] type.
*/
case class GridExtent(extent: Extent, cellwidth: Double, cellheight: Double) extends GridDefinition
/**
* The companion object for the [[GridExtent]] type.
*/
object GridExtent {
/**
* Given an [[Extent]] and a [[CellSize]], produce a new
* [[GridExtent]].
*/
def apply(extent: Extent, cellSize: CellSize): GridExtent =
GridExtent(extent, cellSize.width, cellSize.height)
/**
* An implicit function to convert a [[GridDefinition]] to a
* [[GridExtent]].
*/
implicit def gridDefinitionToGridExtent(gridDefinition: GridDefinition): GridExtent =
gridDefinition.toGridExtent
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy