
geotrellis.engine.op.elevation.ElevationRasterSourceMethods.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-engine_2.10 Show documentation
Show all versions of geotrellis-engine_2.10 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
package geotrellis.engine.op.elevation
import geotrellis.engine._
import geotrellis.raster._
import geotrellis.engine.op.focal._
import geotrellis.raster.mapalgebra.focal.hillshade._
import geotrellis.raster.mapalgebra.focal._
@deprecated("geotrellis-engine has been deprecated", "Geotrellis Version 0.10")
trait ElevationRasterSourceMethods extends RasterSourceMethods with FocalOperation {
def aspect() =
focalWithExtent(Square(1)){ (tile, hood, bounds,re) =>
Aspect(tile, hood, bounds, re.cellSize)
}
def slope: RasterSource = slope()
def slope(zFactor: Double = 1.0): RasterSource =
focalWithExtent(Square(1)){ (tile, hood, bounds, re) =>
Slope(tile, hood, bounds, re.cellSize, zFactor)
}
def hillshade: RasterSource = hillshade()
def hillshade(azimuth: Double = 315, altitude: Double = 45, zFactor: Double = 1): RasterSource =
focalWithExtent(Square(1)){ (tile, hood, bounds, re) =>
Hillshade(tile, hood, bounds, re.cellSize, azimuth, altitude, zFactor)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy