geopyspark.geotrellis.cost_distance module

geopyspark.geotrellis.cost_distance.cost_distance(friction_layer, geometries, max_distance)

Performs cost distance of a TileLayer.

Parameters:
  • friction_layer (TiledRasterLayer) – TiledRasterLayer of a friction surface to traverse.
  • geometries (list) –

    A list of shapely geometries to be used as a starting point.

    Note

    All geometries must be in the same CRS as the TileLayer.

  • max_distance (int or float) – The maximum cost that a path may reach before the operation. stops. This value can be an int or float.
Returns:

TiledRasterLayer