Skip to content

Commit 8cefd31

Browse files
committed
Merge pull request #1472 from gioman/r_cost_raster
[processing] add a r.cost submodule that uses a raster input as starting point(s) + fix r.drain and add a submodule for r.drain that does not need input point vectors
2 parents a72bfb6 + 2176e16 commit 8cefd31

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
r.cost
2+
r.cost.full.raster - Creates a raster layer of cumulative cost of moving across a raster layer whose cell values represent cost.
3+
Raster (r.*)
4+
ParameterRaster|input|Unit cost layer|False
5+
ParameterRaster|start_rast|Name of starting raster points map|0|False
6+
ParameterBoolean|-k|Use the 'Knight's move'; slower, but more accurate|False
7+
ParameterBoolean|-n|Keep null values in output raster layer|False
8+
OutputRaster|output|Cumulative cost
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
r.drain
2+
r.drain.coordinate - Traces a flow through an elevation model on a raster map.
3+
Raster (r.*)
4+
ParameterRaster|input|Elevation|False
5+
ParameterString|coordinate|Map coordinates of starting point(s) (E,N)|0,0
6+
ParameterBoolean|-c|Copy input cell values on output|False
7+
ParameterBoolean|-a|Accumulate input values along the path|False
8+
ParameterBoolean|-n|Count cell numbers along the path|False
9+
OutputRaster|output|Result

python/plugins/processing/algs/grass/description/r.drain.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ r.drain
22
r.drain - Traces a flow through an elevation model on a raster map.
33
Raster (r.*)
44
ParameterRaster|input|Elevation|False
5-
ParameterString|coordinate|Map coordinates of starting point(s) (E,N)|(0,0)
5+
ParameterString|coordinate|Map coordinates of starting point(s) (E,N)|0,0
66
ParameterMultipleInput|vector_points|Vector layer(s) containing starting point(s)|0|False
77
ParameterBoolean|-c|Copy input cell values on output|False
88
ParameterBoolean|-a|Accumulate input values along the path|False

0 commit comments

Comments
 (0)