Skip to content

Commit

Permalink
Add r.cost algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
Médéric RIBREUX committed Feb 28, 2016
1 parent 256b674 commit e87b1b2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
@@ -0,0 +1,14 @@
r.cost
r.cost.coords - Creates a raster layer of cumulative cost of moving across a raster layer whose cell values represent cost from a list of coordinates.
Raster (r.*)
ParameterRaster|input|Unit cost layer|False
ParameterString|start_coordinates|Coordinates of starting point(s) (a list of E,N)|None|False|False
ParameterString|stop_coordinates|Coordinates of stopping point(s) (a list of E,N)|None|False|True
ParameterNumber|max_cost|Maximum cumulative cost|None|None|0.0|True
ParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|None|None|None|True
*ParameterNumber|memory|Maximum memory to be used in MB|0|None|300|True
*ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
*ParameterBoolean|-n|Keep null values in output raster layer|False
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Nearest start points
OutputRaster|outdir|Movement Directions
@@ -0,0 +1,14 @@
r.cost
r.cost.points - Creates a raster layer of cumulative cost of moving across a raster layer whose cell values represent cost from a vector point layer.
Raster (r.*)
ParameterRaster|input|Unit cost layer|False
ParameterVector|start_points|Start points|0|False
ParameterVector|stop_points|Stop points|0|True
ParameterNumber|max_cost|Maximum cumulative cost|None|None|0.0|True
ParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|None|None|None|True
*ParameterNumber|memory|Maximum memory to be used in MB|0|None|300|True
*ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
*ParameterBoolean|-n|Keep null values in output raster layer|False
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Nearest start points
OutputRaster|outdir|Movement Directions
13 changes: 13 additions & 0 deletions python/plugins/processing/algs/grass7/description/r.cost.rast.txt
@@ -0,0 +1,13 @@
r.cost
r.cost.rast - Creates a raster layer of cumulative cost of moving across a raster layer whose cell values represent cost from a raster of starting points.
Raster (r.*)
ParameterRaster|input|Unit cost layer|False
ParameterRaster|start_raster|Name of starting raster points map (all non-NULL cells are starting points)|False
ParameterNumber|max_cost|Maximum cumulative cost|None|None|0.0|True
ParameterNumber|null_cost|Cost assigned to null cells. By default, null cells are excluded|None|None|None|True
*ParameterNumber|memory|Maximum memory to be used in MB|0|None|300|True
*ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
*ParameterBoolean|-n|Keep null values in output raster layer|False
OutputRaster|output|Cumulative cost
OutputRaster|nearest|Nearest start points
OutputRaster|outdir|Movement Directions

0 comments on commit e87b1b2

Please sign in to comment.