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

geotrellis.raster.costdistance.CostDistanceMethods.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.costdistance

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


/**
  * Trait to extent Cost-Distance Methods to [[Tile]]
  */
trait CostDistanceMethods extends MethodExtensions[Tile] {

  /**
    * Compute the cost-distance function over the present [[Tile]] and
    * the given set of points.
    */
  def costDistance(points: Seq[(Int, Int)]): Tile =
    CostDistance(self, points)

  /**
    * Compute the cost-distance function over the present [[Tile]] and
    * the given set of points.
    */
  def costDistanceWithPaths(point: (Int, Int)): CostDistanceWithPathsResult =
    CostDistanceWithPaths(self, point)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy