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

geotrellis.raster.GridExtent.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

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