
geotrellis.spark.mapalgebra.focal.hillshade.HillshadeTileRDDMethods.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark_2.10 Show documentation
Show all versions of geotrellis-spark_2.10 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.mapalgebra.focal.hillshade
import geotrellis.spark.mapalgebra.focal._
import geotrellis.raster.mapalgebra.focal.hillshade._
import geotrellis.raster.mapalgebra.focal._
trait HillshadeTileLayerRDDMethods[K] extends FocalOperation[K] {
def hillshade(azimuth: Double = 315, altitude: Double = 45, zFactor: Double = 1) = {
val n = Square(1)
focalWithCellSize(n) { (tile, bounds, cellSize) =>
Hillshade(tile, n, bounds, cellSize, azimuth, altitude, zFactor)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy