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

geotrellis.raster.viewshed.ViewshedMethods.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.viewshed

import geotrellis.raster._
import geotrellis.util.MethodExtensions


trait ViewshedMethods extends MethodExtensions[Tile] {
  def viewshed(col: Int, row: Int, exact: Boolean = false): Tile =
    if (exact)
      Viewshed(self, col, row)
    else
      ApproxViewshed(self, col, row)

  def viewshedOffsets(col: Int, row: Int, exact: Boolean = false): Tile =
    if (exact)
      Viewshed.offsets(self, col, row)
    else
      ApproxViewshed.offsets(self, col, row)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy