Skip to content

Commit

Permalink
[processing][grass] Fix definition of r.watershed, resurrect test
Browse files Browse the repository at this point in the history
(cherry-picked from e893aae)
  • Loading branch information
nyalldawson committed Aug 9, 2018
1 parent 3d7b0d5 commit d5be083
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 52 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ QgsProcessingParameterBoolean|-m|Enable disk swap memory option (-m): Operation
QgsProcessingParameterBoolean|-4|Allow only horizontal and vertical flow of water|False QgsProcessingParameterBoolean|-4|Allow only horizontal and vertical flow of water|False
QgsProcessingParameterBoolean|-a|Use positive flow accumulation even for likely underestimates|False QgsProcessingParameterBoolean|-a|Use positive flow accumulation even for likely underestimates|False
QgsProcessingParameterBoolean|-b|Beautify flat areas|False QgsProcessingParameterBoolean|-b|Beautify flat areas|False
QgsProcessingParameterRasterDestination|accumulation|Number of cells that drain through each cell QgsProcessingParameterRasterDestination|accumulation|Number of cells that drain through each cell|None|True
QgsProcessingParameterRasterDestination|drainage|Drainage direction QgsProcessingParameterRasterDestination|drainage|Drainage direction|None|True
QgsProcessingParameterRasterDestination|basin|Unique label for each watershed basin QgsProcessingParameterRasterDestination|basin|Unique label for each watershed basin|None|True
QgsProcessingParameterRasterDestination|stream|Stream segments QgsProcessingParameterRasterDestination|stream|Stream segments|None|True
QgsProcessingParameterRasterDestination|half_basin|Half-basins QgsProcessingParameterRasterDestination|half_basin|Half-basins|None|True
QgsProcessingParameterRasterDestination|length_slope|Slope length and steepness (LS) factor for USLE QgsProcessingParameterRasterDestination|length_slope|Slope length and steepness (LS) factor for USLE|None|True
QgsProcessingParameterRasterDestination|slope_steepness|Slope steepness (S) factor for USLE QgsProcessingParameterRasterDestination|slope_steepness|Slope steepness (S) factor for USLE|None|True
QgsProcessingParameterRasterDestination|tci|Topographic index ln(a / tan(b)) QgsProcessingParameterRasterDestination|tci|Topographic index ln(a / tan(b))|None|True
QgsProcessingParameterRasterDestination|spi|Stream power index a * tan(b) QgsProcessingParameterRasterDestination|spi|Stream power index a * tan(b)|None|True
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1691,49 +1691,50 @@ tests:
name: expected/grass7/r.li.simpson.ascii.txt name: expected/grass7/r.li.simpson.ascii.txt
type: file type: file


# Differences between osgeo4travis and Debian Stretch - algorithm: grass7:r.watershed
# - algorithm: grass7:r.watershed name: GRASS7 r.watershed
# name: GRASS7 r.watershed params:
# params: '-4': false
# '-4': false -a: false
# -a: false -b: false
# -b: false -m: false
# -m: false -s: false
# -s: false GRASS_REGION_CELLSIZE_PARAMETER: 0.0
# GRASS_REGION_CELLSIZE_PARAMETER: 0.0 GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0
# GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 convergence: 5
# convergence: 5 elevation:
# elevation: name: custom/grass7/float_raster.tif
# name: custom/grass7/float_raster.tif type: raster
# type: raster max_slope_length: 50
# max_slope_length: 50 memory: 300
# memory: 300 threshold: 1
# threshold: 1 results:
# results: accumulation:
# accumulation: hash: 1ecbadff7aee4101be1c3626a7c77ebca3ae598d33672807f4a6fc34
# hash: 1ecbadff7aee4101be1c3626a7c77ebca3ae598d33672807f4a6fc34 type: rasterhash
# type: rasterhash basin:
# basin: hash: d4691e1bff8bf352508ecbdf7c694208d07ef83bb13b0768418f322c
# hash: d4691e1bff8bf352508ecbdf7c694208d07ef83bb13b0768418f322c type: rasterhash
# type: rasterhash drainage:
# drainage: hash: 3e97f781cbca662823a53e7a6cb10e1edde2f8d0e4d64c28a62db2c0
# hash: 3e97f781cbca662823a53e7a6cb10e1edde2f8d0e4d64c28a62db2c0 type: rasterhash
# type: rasterhash half_basin:
# half_basin: hash: 431a0c8359b7662169ef8a9adf469da47a282a70981de5bee24e3528
# hash: 431a0c8359b7662169ef8a9adf469da47a282a70981de5bee24e3528 type: rasterhash
# type: rasterhash length_slope:
# length_slope: hash: 69b5b31ac93a25f01b85e4f7867e5b8720183732d29d50c24204a7b9
# hash: 69b5b31ac93a25f01b85e4f7867e5b8720183732d29d50c24204a7b9 type: rasterhash
# type: rasterhash slope_steepness:
# slope_steepness: hash: cafb759a5701e78928a43d87e58e552f9186358b1de40c375047f81e
# hash: cafb759a5701e78928a43d87e58e552f9186358b1de40c375047f81e type: rasterhash
# type: rasterhash stream:
# stream: hash: c6e7b081057d120e47e6d10f5abd05e47b42284c7d7974e64c71e053
# hash: c6e7b081057d120e47e6d10f5abd05e47b42284c7d7974e64c71e053 type: rasterhash
# type: rasterhash tci:
# tci: hash:
# hash: 6b213bddf1223f392c01ab26e84485c01d652dfcae40aecd186f3295 - 6b213bddf1223f392c01ab26e84485c01d652dfcae40aecd186f3295
# type: rasterhash - e58737ab4169e79243dd7e50dc87555a2180a7e5f6ba00fe18b10fff
type: rasterhash


# Differences between osgeo4travis and Debian Stretch # Differences between osgeo4travis and Debian Stretch
#- algorithm: grass7:r.transect #- algorithm: grass7:r.transect
Expand Down

0 comments on commit d5be083

Please sign in to comment.