diff --git a/ci/travis/linux/qt5/blacklist.txt b/ci/travis/linux/qt5/blacklist.txt index ac0a554b147..c84049c57c8 100755 --- a/ci/travis/linux/qt5/blacklist.txt +++ b/ci/travis/linux/qt5/blacklist.txt @@ -13,4 +13,5 @@ PyQgsVirtualLayerDefinition PyQgsVirtualLayerProvider qgis_composermapgridtest qgis_composerutils -ProcessingGrass7AlgorithmsTest +ProcessingGrass7AlgorithmsImageryTest +ProcessingGrass7AlgorithmsRasterTest diff --git a/python/plugins/processing/algs/grass7/Grass7Algorithm.py b/python/plugins/processing/algs/grass7/Grass7Algorithm.py index 7a703c1cc83..e5ccf0bfdbb 100644 --- a/python/plugins/processing/algs/grass7/Grass7Algorithm.py +++ b/python/plugins/processing/algs/grass7/Grass7Algorithm.py @@ -472,11 +472,6 @@ class Grass7Algorithm(GeoAlgorithm): self.commands.append(command) self.outputCommands.append(command) - command = 'r.out.gdal --overwrite -c createopt="TFW=YES,COMPRESS=LZW"' - command += ' input=' - command += 'correctedoutput' + self.uniqueSufix - command += ' output="' + filename + '"' - elif self.grass7Name == 'r.composite': command = 'r.out.gdal --overwrite -c createopt="TFW=YES,COMPRESS=LZW"' command += ' input=' command += 'correctedoutput' + self.uniqueSufix @@ -487,9 +482,6 @@ class Grass7Algorithm(GeoAlgorithm): if self.grass7Name == 'r.horizon': command += out.name + self.uniqueSufix + '_0' - elif self.grass7Name == 'r.composite': - self.commands.append(command) - self.outputCommands.append(command) elif self.grass7Name == 'r.statistics': self.commands.append(command) self.outputCommands.append(command) diff --git a/python/plugins/processing/algs/grass7/description/r.aspect.txt b/python/plugins/processing/algs/grass7/description/r.aspect.txt index 42bf2412445..7d2ed6bf3fa 100644 --- a/python/plugins/processing/algs/grass7/description/r.aspect.txt +++ b/python/plugins/processing/algs/grass7/description/r.aspect.txt @@ -1,9 +1,9 @@ r.slope.aspect -r.aspect - Generates raster maps of aspect from a elevation raster map. +r.aspect - Generates raster maps of aspect from an elevation raster map. Raster (r.*) ParameterRaster|elevation|Elevation|False -ParameterSelection|precision|Data type|FCELL;CELL;DCELL -ParameterBoolean|-a|Do not align the current region to the elevation layer|True -ParameterNumber|zfactor|Multiplicative factor to convert elevation units to meters|None|None|1.0 +ParameterSelection|precision|Data type|FCELL;CELL;DCELL|0 +*ParameterBoolean|-a|Do not align the current region to the elevation layer|False +ParameterNumber|zscale|Multiplicative factor to convert elevation units to meters|None|None|1.0 ParameterNumber|min_slope|Minimum slope val. (in percent) for which aspect is computed|None|None|0.0 OutputRaster|aspect|Aspect diff --git a/python/plugins/processing/algs/grass7/description/r.fillnulls.txt b/python/plugins/processing/algs/grass7/description/r.fillnulls.txt index 3be7bc4f6a8..badde7889b1 100644 --- a/python/plugins/processing/algs/grass7/description/r.fillnulls.txt +++ b/python/plugins/processing/algs/grass7/description/r.fillnulls.txt @@ -1,7 +1,11 @@ r.fillnulls -Fills no-data areas in a raster layer using v.surf.rst splines interpolation or v.surf.bspline interpolation +Fills no-data areas in raster maps using spline interpolation. Raster (r.*) ParameterRaster|input|Input raster layer to fill|False +ParameterSelection|method|Interpolation method to use|bilinear;bicubic;rst|2 ParameterNumber|tension|Spline tension parameter|None|None|40.0 ParameterNumber|smooth|Spline smoothing parameter|None|None|0.1 +ParameterNumber|edge|Width of hole edge used for interpolation (in cells)|2|100|3|True +ParameterNumber|npmin|Minimum number of points for approximation in a segment (>segmax)|2|10000|600|True +ParameterNumber|segmax|Maximum number of points in a segment|2|10000|300|True OutputRaster|output|Filled diff --git a/python/plugins/processing/algs/grass7/description/r.his.txt b/python/plugins/processing/algs/grass7/description/r.his.txt index 6927d649ebd..2c0d8a3bfa0 100644 --- a/python/plugins/processing/algs/grass7/description/r.his.txt +++ b/python/plugins/processing/algs/grass7/description/r.his.txt @@ -4,7 +4,7 @@ Raster (r.*) ParameterRaster|hue|Hue|False ParameterRaster|intensity|Intensity|False ParameterRaster|saturation|Saturation|False -ParameterBoolean|-n|Respect NULL values while drawing|False +ParameterBoolean|-c|Use colors from color tables for NULL values|False OutputRaster|red|Red OutputRaster|green|Green OutputRaster|blue|Blue diff --git a/python/plugins/processing/algs/grass7/description/r.li.cwed.ascii.txt b/python/plugins/processing/algs/grass7/description/r.li.cwed.ascii.txt index 2235f466455..2109e617c33 100644 --- a/python/plugins/processing/algs/grass7/description/r.li.cwed.ascii.txt +++ b/python/plugins/processing/algs/grass7/description/r.li.cwed.ascii.txt @@ -4,5 +4,5 @@ Raster (r.*) ParameterRaster|input|Name of input raster map|False ParameterString|config_txt|Landscape structure configuration|None|True|True ParameterFile|config|Landscape structure configuration file|False|True -ParameterFile|path|Name of file that contains the weight to calculate the index|False +ParameterFile|path|Name of file that contains the weight to calculate the index|False|False OutputFile|output|CWED diff --git a/python/plugins/processing/algs/grass7/description/r.li.cwed.txt b/python/plugins/processing/algs/grass7/description/r.li.cwed.txt index ac91495d8bb..43c37ef299e 100644 --- a/python/plugins/processing/algs/grass7/description/r.li.cwed.txt +++ b/python/plugins/processing/algs/grass7/description/r.li.cwed.txt @@ -4,5 +4,5 @@ Raster (r.*) ParameterRaster|input|Name of input raster map|False ParameterString|config_txt|Landscape structure configuration|None|True|True ParameterFile|config|Landscape structure configuration file|False|True -ParameterFile|path|Name of file that contains the weight to calculate the index|False +ParameterFile|path|Name of file that contains the weight to calculate the index|False|False OutputRaster|output|CWED diff --git a/python/plugins/processing/algs/grass7/description/r.li.renyi.ascii.txt b/python/plugins/processing/algs/grass7/description/r.li.renyi.ascii.txt index 409f65e3f70..29b2e9c4170 100644 --- a/python/plugins/processing/algs/grass7/description/r.li.renyi.ascii.txt +++ b/python/plugins/processing/algs/grass7/description/r.li.renyi.ascii.txt @@ -4,5 +4,5 @@ Raster (r.*) ParameterRaster|input|Name of input raster map|False ParameterString|config_txt|Landscape structure configuration|None|True|True ParameterFile|config|Landscape structure configuration file|False|True -ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True +ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|False OutputFile|output|Renyi diff --git a/python/plugins/processing/algs/grass7/description/r.li.renyi.txt b/python/plugins/processing/algs/grass7/description/r.li.renyi.txt index 9429d3b85bf..5f4b2a210c1 100644 --- a/python/plugins/processing/algs/grass7/description/r.li.renyi.txt +++ b/python/plugins/processing/algs/grass7/description/r.li.renyi.txt @@ -4,5 +4,5 @@ Raster (r.*) ParameterRaster|input|Name of input raster map|False ParameterString|config_txt|Landscape structure configuration|None|True|True ParameterFile|config|Landscape structure configuration file|False|True -ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|True +ParameterString|alpha|Alpha value is the order of the generalized entropy|None|False|False OutputRaster|output|Renyi diff --git a/python/plugins/processing/algs/grass7/description/r.slope.txt b/python/plugins/processing/algs/grass7/description/r.slope.txt index 09d7ecb3df1..25c1f1f2694 100644 --- a/python/plugins/processing/algs/grass7/description/r.slope.txt +++ b/python/plugins/processing/algs/grass7/description/r.slope.txt @@ -1,9 +1,9 @@ r.slope.aspect -r.slope - Generates raster maps of slope from a elevation raster map. +r.slope - Generates raster maps of slope from an elevation raster map. Raster (r.*) ParameterRaster|elevation|Elevation|False -ParameterSelection|precision|Data type|FCELL;CELL;DCELL -ParameterBoolean|-a|Do not align the current region to the elevation layer|True -ParameterNumber|zfactor|Multiplicative factor to convert elevation units to meters|None|None|1.0 +ParameterSelection|precision|Data type|FCELL;CELL;DCELL|0 +*ParameterBoolean|-a|Do not align the current region to the elevation layer|False +ParameterNumber|zscale|Multiplicative factor to convert elevation units to meters|None|None|1.0 ParameterNumber|min_slope|Minimum slope val. (in percent) for which aspect is computed|None|None|0.0 OutputRaster|slope|Slope diff --git a/python/plugins/processing/algs/grass7/description/r.sum.txt b/python/plugins/processing/algs/grass7/description/r.sum.txt deleted file mode 100644 index 772974c63ac..00000000000 --- a/python/plugins/processing/algs/grass7/description/r.sum.txt +++ /dev/null @@ -1,4 +0,0 @@ -r.sum -Sums up the raster cell values. -Raster (r.*) -ParameterRaster|rast|Name of incidence or density file|False diff --git a/python/plugins/processing/algs/grass7/description/r.topidx.txt b/python/plugins/processing/algs/grass7/description/r.topidx.txt index caff875ee41..154c994e72b 100644 --- a/python/plugins/processing/algs/grass7/description/r.topidx.txt +++ b/python/plugins/processing/algs/grass7/description/r.topidx.txt @@ -2,4 +2,4 @@ r.topidx Creates topographic index layer from elevation raster layer Raster (r.*) ParameterRaster|input|Input elevation layer|False -OutputRaster|Topographic index +OutputRaster|output|Topographic index diff --git a/python/plugins/processing/algs/grass7/description/r.viewshed.txt b/python/plugins/processing/algs/grass7/description/r.viewshed.txt index 55478e38dd5..8fd113767c9 100644 --- a/python/plugins/processing/algs/grass7/description/r.viewshed.txt +++ b/python/plugins/processing/algs/grass7/description/r.viewshed.txt @@ -2,9 +2,14 @@ r.viewshed Computes the viewshed of a point on an elevation raster map. Raster (r.*) ParameterRaster|input|Elevation|False -ParameterString|coordinates|Coordinate identifying the viewing position|0,0 -ParameterString|observer_elevation|Viewing position height above the ground|1.75 -ParameterString|target_elevation|Offset for target elevation above the ground|0.0 -ParameterString|max_distance|Maximum distance from the viewing point (meters)|10000 -ParameterBoolean|-c|Consider earth curvature (current ellipsoid)|False +ParameterString|coordinates|Coordinate identifying the viewing position|0,0|False|False +ParameterString|observer_elevation|Viewing elevation above the ground|1.75|False|False +ParameterString|target_elevation|Offset for target elevation above the ground|0.0|False|False +ParameterString|max_distance|Maximum distance from the viewing point (meters)|-1|False|False +ParameterNumber|refraction_coeff|Refraction coefficient|0.0|1.0|0.14286|False +ParameterNumber|memory|Amount of memory to use in MB|1|None|500|False +*ParameterBoolean|-c|Consider earth curvature (current ellipsoid)|False +*ParameterBoolean|-r|Consider the effect of atmospheric refraction|False +*ParameterBoolean|-b|Output format is invisible = 0, visible = 1|False +*ParameterBoolean|-e|Output format is invisible = NULL, else current elev - viewpoint_elev|False OutputRaster|output|Intervisibility diff --git a/python/plugins/processing/algs/grass7/description/r.volume.txt b/python/plugins/processing/algs/grass7/description/r.volume.txt index e8fa9de76e3..855ac8034cf 100644 --- a/python/plugins/processing/algs/grass7/description/r.volume.txt +++ b/python/plugins/processing/algs/grass7/description/r.volume.txt @@ -1,7 +1,7 @@ r.volume Calculates the volume of data "clumps". Raster (r.*) -ParameterRaster|data|Layer representing data that will be summed within clumps|False +ParameterRaster|input|Name of input raster map representing data that will be summed within clumps|False ParameterRaster|clump|Clumps layer (preferably the output of r.clump)|False *ParameterBoolean|-f|Generate unformatted report|False OutputVector|centroids|Centroids diff --git a/python/plugins/processing/algs/grass7/ext/r_li_cwed.py b/python/plugins/processing/algs/grass7/ext/r_li_cwed.py index a0219530f26..563cbafb54d 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_cwed.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_cwed.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_edgedensity.py b/python/plugins/processing/algs/grass7/ext/r_li_edgedensity.py index b6d9eb71dae..af80a6c42ed 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_edgedensity.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_edgedensity.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_mpa.py b/python/plugins/processing/algs/grass7/ext/r_li_mpa.py index 4c617b78db9..fe6fc066e2d 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_mpa.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_mpa.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_mps.py b/python/plugins/processing/algs/grass7/ext/r_li_mps.py index 4a8e2881784..dbf086065f7 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_mps.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_mps.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_padcv.py b/python/plugins/processing/algs/grass7/ext/r_li_padcv.py index 7b4088fe1e0..08731fb93e6 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_padcv.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_padcv.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_padrange.py b/python/plugins/processing/algs/grass7/ext/r_li_padrange.py index c0ca0cfd900..20762ddfbe4 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_padrange.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_padrange.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_padsd.py b/python/plugins/processing/algs/grass7/ext/r_li_padsd.py index 63631ef7335..ff1cc42abca 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_padsd.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_padsd.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_patchdensity.py b/python/plugins/processing/algs/grass7/ext/r_li_patchdensity.py index bcc1547516a..95a14467bc8 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_patchdensity.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_patchdensity.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_patchnum.py b/python/plugins/processing/algs/grass7/ext/r_li_patchnum.py index 983da80e5f7..fa0fc9d3f7b 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_patchnum.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_patchnum.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_pielou.py b/python/plugins/processing/algs/grass7/ext/r_li_pielou.py index ecd067e5313..1ddfa827bbe 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_pielou.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_pielou.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_renyi.py b/python/plugins/processing/algs/grass7/ext/r_li_renyi.py index 843dfb8ba81..07e5d084d06 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_renyi.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_renyi.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_richness.py b/python/plugins/processing/algs/grass7/ext/r_li_richness.py index 097c6087ed9..3a4af1ea397 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_richness.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_richness.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_shannon.py b/python/plugins/processing/algs/grass7/ext/r_li_shannon.py index e95ea8df58d..b1a14d8f7bb 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_shannon.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_shannon.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_shape.py b/python/plugins/processing/algs/grass7/ext/r_li_shape.py index d94460b5e31..38f4dd71772 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_shape.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_shape.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/algs/grass7/ext/r_li_simpson.py b/python/plugins/processing/algs/grass7/ext/r_li_simpson.py index 56d44766586..d8735afdc3e 100644 --- a/python/plugins/processing/algs/grass7/ext/r_li_simpson.py +++ b/python/plugins/processing/algs/grass7/ext/r_li_simpson.py @@ -29,7 +29,7 @@ from r_li import checkMovingWindow, configFile def checkParameterValuesBeforeExecuting(alg): - checkMovingWindow(alg) + return checkMovingWindow(alg) def processCommand(alg): diff --git a/python/plugins/processing/gui/TestTools.py b/python/plugins/processing/gui/TestTools.py index aae1ed2c579..7f5f63c6d71 100644 --- a/python/plugins/processing/gui/TestTools.py +++ b/python/plugins/processing/gui/TestTools.py @@ -26,6 +26,7 @@ __copyright__ = '(C) 2013, Victor Olaya' __revision__ = '$Format:%H$' import os +import re import yaml import hashlib @@ -43,14 +44,18 @@ from processing.core.outputs import ( OutputString, OutputRaster, OutputVector, - OutputHTML + OutputHTML, + OutputFile ) from processing.core.parameters import ( ParameterRaster, ParameterVector, ParameterMultipleInput, - ParameterFile + ParameterFile, + ParameterString, + ParameterNumber, + ParameterBoolean ) @@ -73,7 +78,7 @@ def extractSchemaPath(filepath): path = filepath part = True - while part: + while part and filepath: (path, part) = os.path.split(path) if part == 'testdata' and not localpath: localparts = parts @@ -95,11 +100,39 @@ def extractSchemaPath(filepath): return schema, localpath +def parseParameters(command): + """ + Parse alg string to grab parameters value. + Can handle quotes and comma. + """ + pos = 0 + exp = re.compile(r"""(['"]?)(.*?)\1(,|$)""") + while True: + m = exp.search(command, pos) + result = m.group(2) + separator = m.group(3) + + # Handle special values: + if result == 'None': + result = None + elif result.lower() == unicode(True).lower(): + result = True + elif result.lower() == unicode(False).lower(): + result = False + + yield result + + if not separator: + break + + pos = m.end(0) + + def createTest(text): definition = {} - tokens = text[len('processing.runalg('):-1].split(',') - cmdname = (tokens[0])[1:-1] + tokens = list(parseParameters(text[len('processing.runalg('):-1])) + cmdname = tokens[0] alg = Processing.getAlgorithm(cmdname) definition['name'] = 'Test ({})'.format(cmdname) @@ -115,10 +148,12 @@ def createTest(text): i += 1 token = tokens[i] + # Handle empty parameters that are optionals + if param.optional and token is None: + continue if isinstance(param, ParameterVector): - filename = token[1:-1] - schema, filepath = extractSchemaPath(filename) + schema, filepath = extractSchemaPath(token) p = { 'type': 'vector', 'name': filepath @@ -128,8 +163,7 @@ def createTest(text): params[param.name] = p elif isinstance(param, ParameterRaster): - filename = token[1:-1] - schema, filepath = extractSchemaPath(filename) + schema, filepath = extractSchemaPath(token) p = { 'type': 'raster', 'name': filepath @@ -139,7 +173,7 @@ def createTest(text): params[param.name] = p elif isinstance(param, ParameterMultipleInput): - multiparams = token[1:-1].split(';') + multiparams = token.split(';') newparam = [] # Handle datatype detection @@ -164,8 +198,7 @@ def createTest(text): params[param.name] = p elif isinstance(param, ParameterFile): - filename = token[1:-1] - schema, filepath = extractSchemaPath(filename) + schema, filepath = extractSchemaPath(token) p = { 'type': 'file', 'name': filepath @@ -174,18 +207,21 @@ def createTest(text): p['location'] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]' params[param.name] = p - else: - try: + elif isinstance(param, ParameterString): + params[param.name] = token + elif isinstance(param, ParameterBoolean): + params[param.name] = token + elif isinstance(param, ParameterNumber): + if param.isInteger: params[param.name] = int(token) - except ValueError: - try: - params[param.name] = float(token) - except ValueError: - if token[0] == '"': - token = token[1:] - if token[-1] == '"': - token = token[:-1] - params[param.name] = token + else: + params[param.name] = float(token) + else: + if token[0] == '"': + token = token[1:] + if token[-1] == '"': + token = token[:-1] + params[param.name] = token definition['params'] = params @@ -195,8 +231,7 @@ def createTest(text): if isinstance(out, (OutputNumber, OutputString)): results[out.name] = unicode(out) elif isinstance(out, OutputRaster): - filename = token[1:-1] - dataset = gdal.Open(filename, GA_ReadOnly) + dataset = gdal.Open(token, GA_ReadOnly) dataArray = nan_to_num(dataset.ReadAsArray(0)) strhash = hashlib.sha224(dataArray.data).hexdigest() @@ -205,17 +240,15 @@ def createTest(text): 'hash': strhash } elif isinstance(out, OutputVector): - filename = token[1:-1] - schema, filepath = extractSchemaPath(filename) + schema, filepath = extractSchemaPath(token) results[out.name] = { 'type': 'vector', 'name': filepath } if not schema: results[out.name]['location'] = '[The expected result data is not in the testdata directory. Please write it to processing/tests/testdata/expected. Prefer gml files.]' - elif isinstance(out, OutputHTML): - filename = token[1:-1] - schema, filepath = extractSchemaPath(filename) + elif isinstance(out, OutputHTML) or isinstance(out, OutputFile): + schema, filepath = extractSchemaPath(token) results[out.name] = { 'type': 'file', 'name': filepath @@ -224,7 +257,6 @@ def createTest(text): results[out.name]['location'] = '[The expected result file is not in the testdata directory. Please redirect the output to processing/tests/testdata/expected.]' definition['results'] = results - dlg = ShowTestDialog(yaml.dump([definition], default_flow_style=False)) dlg.exec_() @@ -244,7 +276,8 @@ class ShowTestDialog(QDialog): self.text = QTextEdit() self.text.setFontFamily("monospace") self.text.setEnabled(True) - self.text.setText(s) + # Add two spaces in front of each text for faster copy/paste + self.text.setText(' {}'.format(s.replace('\n', '\n '))) layout.addWidget(self.text) self.setLayout(layout) QMetaObject.connectSlotsByName(self) diff --git a/python/plugins/processing/tests/CMakeLists.txt b/python/plugins/processing/tests/CMakeLists.txt index c3c482f7c9d..ac9cb33c6b4 100644 --- a/python/plugins/processing/tests/CMakeLists.txt +++ b/python/plugins/processing/tests/CMakeLists.txt @@ -9,5 +9,6 @@ IF(ENABLE_TESTS) ADD_PYTHON_TEST(ProcessingParametersTest ParametersTest.py) ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTest QgisAlgorithmsTest.py) ADD_PYTHON_TEST(ProcessingGdalAlgorithmsTest GdalAlgorithmsTest.py) - ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsTest Grass7AlgorithmsTest.py) + ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsImageryTest Grass7AlgorithmsImageryTest.py) + ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsRasterTest Grass7AlgorithmsRasterTest.py) ENDIF(ENABLE_TESTS) diff --git a/python/plugins/processing/tests/Grass7AlgorithmsImageryTest.py b/python/plugins/processing/tests/Grass7AlgorithmsImageryTest.py new file mode 100644 index 00000000000..74dda95afc7 --- /dev/null +++ b/python/plugins/processing/tests/Grass7AlgorithmsImageryTest.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- + +""" +*************************************************************************** + Grass7AlgorithmsImageryTest.py + ------------------------------ + Date : May 2016 + Copyright : (C) 2016 by Médéric Ribreux + Email : mederic dot ribreux at medspx dot fr +*************************************************************************** +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* * +*************************************************************************** +""" + +__author__ = 'Médéric Ribreux' +__date__ = 'May 2016' +__copyright__ = '(C) 2016, Médéric Ribreux' + +# This will get replaced with a git SHA1 when you do a git archive + +__revision__ = ':%H$' + +import AlgorithmsTestBase + +import nose2 +import shutil + +from qgis.testing import ( + start_app, + unittest +) + + +class TestGrass7AlgorithmsImageryTest(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest): + + @classmethod + def setUpClass(cls): + start_app() + from processing.core.Processing import Processing + Processing.initialize() + cls.cleanup_paths = [] + + @classmethod + def tearDownClass(cls): + for path in cls.cleanup_paths: + shutil.rmtree(path) + + def test_definition_file(self): + return 'grass7_algorithms_imagery_tests.yaml' + + +if __name__ == '__main__': + nose2.main() diff --git a/python/plugins/processing/tests/Grass7AlgorithmsTest.py b/python/plugins/processing/tests/Grass7AlgorithmsRasterTest.py similarity index 88% rename from python/plugins/processing/tests/Grass7AlgorithmsTest.py rename to python/plugins/processing/tests/Grass7AlgorithmsRasterTest.py index 8bc7a88dc37..1d195e4209b 100644 --- a/python/plugins/processing/tests/Grass7AlgorithmsTest.py +++ b/python/plugins/processing/tests/Grass7AlgorithmsRasterTest.py @@ -2,8 +2,8 @@ """ *************************************************************************** - Grass7AlgorithmTests.py - ----------------------- + Grass7AlgorithmsRasterTest.py + ----------------------------- Date : May 2016 Copyright : (C) 2016 by Médéric Ribreux Email : mederic dot ribreux at medspx dot fr @@ -36,7 +36,7 @@ from qgis.testing import ( ) -class TestGrass7Algorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest): +class TestGrass7AlgorithmsRasterTest(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest): @classmethod def setUpClass(cls): @@ -51,7 +51,7 @@ class TestGrass7Algorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest) shutil.rmtree(path) def test_definition_file(self): - return 'grass7_algorithm_tests.yaml' + return 'grass7_algorithms_raster_tests.yaml' if __name__ == '__main__': diff --git a/python/plugins/processing/tests/grass7_todo.md b/python/plugins/processing/tests/grass7_todo.md new file mode 100644 index 00000000000..ed1de96ebe1 --- /dev/null +++ b/python/plugins/processing/tests/grass7_todo.md @@ -0,0 +1,103 @@ +# Here is a list of grass7 algorithms without test units + +## Raster algorithms + +* r.basins.fill: needs different input rasters (result is always empty). +* r.carve: needs a vector input. +* r.colors: needs to handle output directories. +* r.colors.stddev: needs to find a way to test color table. +* r.contour.level: needs to export vector to GeoJSON (instead of Shapefile). +* r.contour.step: needs to export vector to GeoJSON (instead of Shapefile). +* r.drain: needs another dataset. +* r.flow.aspect.barrier: needs another dataset. +* r.flow.barrier: needs another dataset. +* r.grow: needs another dataset. +* r.grow.distance: needs another dataset. +* r.gwflow: needs another (huge) dataset. +* r.horizon +* r.horizon.height +* r.in.lidar: needs another dataset. +* r.in.lidar.info: needs another dataset. +* r.mapcalc +* r.mask.rast +* r.mask.vect +* r.median +* r.mfilter +* r.mfilter.fp +* r.mode +* r.neighbors +* r.null +* r.out.gridatb +* r.out.ppm +* r.out.vrml +* r.param.scale +* r.patch +* r.profile +* r.quant +* r.quantile +* r.random +* r.random.cells +* r.random.raster +* r.random.surface +* r.reclass.area.greater +* r.reclass.area.lesser +* r.recode +* r.regression.line +* r.regression.multi +* r.relief +* r.relief.scaling +* r.report +* r.resamp.bspline +* r.resamp.filter +* r.resamp.interp +* r.resamp.rst +* r.resamp.stats +* r.resample +* r.rescale +* r.rescale.eq +* r.rgb +* r.ros: too much input rasters ! +* r.series.accumulate: can't reproduce same results ! +* r.series.interp: needs to handle output directories +* r.sim.sediment: too much input rasters ! +* r.sim.water: too much input rasters ! +* r.solute.transport: too much input rasters ! +* r.spreadpath: segfaults with test dataset ! +* r.stats.quantile.rast: needs to handle output directories +* r.sunhours: can't reproduce same results ! +* r.support: create a new test for raster: test after metadata. +* r.surf.fractal: random results ! +* r.surf.gauss: random results ! +* r.surf.random: random results ! +* r.terraflow: can't produce output with test dataset ! +* r.texture: needs to handle output directories +* r.tile: needs to handle output directories +* r.tileset: can't reproduce same results +* r.to.vect: needs a vector output in GML +* r.topmodel: too much manual inputs. +* r.uslek: can't produce output with test dataset (needs reclassified float rasters) ! +* r.viewshed: can't produce output with test dataset ! +* r.volume: needs a vector output in GML + +## Imagery algorithms + +* i.albedo +* i.aster.toar +* i.cca +* i.colors.enhance +* i.eb.evapfr +* i.evapo.time +* i.fft +* i.his.rgb +* i.ifft +* i.in.spotvgt +* i.landsat.acca +* i.landsat.toar +* i.pca +* i.rectify +* i.tasscap +* i.topo.corr + +## Vector algorithms + +We need to handle gml for output and input for GRASS7 algorithms before creating tests ! diff --git a/python/plugins/processing/tests/testdata/custom/grass7/float_raster.tif.aux.xml b/python/plugins/processing/tests/testdata/custom/grass7/float_raster.tif.aux.xml deleted file mode 100644 index 1bc16ac0895..00000000000 --- a/python/plugins/processing/tests/testdata/custom/grass7/float_raster.tif.aux.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - -310.575 - 14854.575 - 1000 - 0 - 0 - 8|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|15|15|15|16|15|15|8 - - - - 14847 - 7272 - -303 - 4373.7169547194 - - - diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points.dbf b/python/plugins/processing/tests/testdata/custom/grass7/points.dbf new file mode 100644 index 00000000000..1aa8c162f26 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points.dbf differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points.prj b/python/plugins/processing/tests/testdata/custom/grass7/points.prj new file mode 100644 index 00000000000..5adb2a9108a --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/points.prj @@ -0,0 +1 @@ +PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]] \ No newline at end of file diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points.qpj b/python/plugins/processing/tests/testdata/custom/grass7/points.qpj new file mode 100644 index 00000000000..52a60bf44d9 --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/points.qpj @@ -0,0 +1 @@ +PROJCS["RGF93 / Lambert-93",GEOGCS["RGF93",DATUM["Reseau_Geodesique_Francais_1993",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6171"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4171"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2154"]] diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points.shp b/python/plugins/processing/tests/testdata/custom/grass7/points.shp new file mode 100644 index 00000000000..24054e80881 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points.shp differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points.shx b/python/plugins/processing/tests/testdata/custom/grass7/points.shx new file mode 100644 index 00000000000..cf1076fcb09 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points.shx differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points2.dbf b/python/plugins/processing/tests/testdata/custom/grass7/points2.dbf new file mode 100644 index 00000000000..4e0de29048c Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points2.dbf differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points2.prj b/python/plugins/processing/tests/testdata/custom/grass7/points2.prj new file mode 100644 index 00000000000..5adb2a9108a --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/points2.prj @@ -0,0 +1 @@ +PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF93",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["Meter",1]] \ No newline at end of file diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points2.qpj b/python/plugins/processing/tests/testdata/custom/grass7/points2.qpj new file mode 100644 index 00000000000..52a60bf44d9 --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/points2.qpj @@ -0,0 +1 @@ +PROJCS["RGF93 / Lambert-93",GEOGCS["RGF93",DATUM["Reseau_Geodesique_Francais_1993",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6171"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4171"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",49],PARAMETER["standard_parallel_2",44],PARAMETER["latitude_of_origin",46.5],PARAMETER["central_meridian",3],PARAMETER["false_easting",700000],PARAMETER["false_northing",6600000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","2154"]] diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points2.shp b/python/plugins/processing/tests/testdata/custom/grass7/points2.shp new file mode 100644 index 00000000000..c466da77004 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points2.shp differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/points2.shx b/python/plugins/processing/tests/testdata/custom/grass7/points2.shx new file mode 100644 index 00000000000..280ece42471 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/points2.shx differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/raster_1class.tif b/python/plugins/processing/tests/testdata/custom/grass7/raster_1class.tif new file mode 100644 index 00000000000..bf3f1b77b91 Binary files /dev/null and b/python/plugins/processing/tests/testdata/custom/grass7/raster_1class.tif differ diff --git a/python/plugins/processing/tests/testdata/custom/grass7/rliconfig b/python/plugins/processing/tests/testdata/custom/grass7/rliconfig new file mode 100644 index 00000000000..203391b0328 --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/rliconfig @@ -0,0 +1,2 @@ +SAMPLINGFRAME 0|0|1|1 +SAMPLEAREA 0.0|0.0|1.0|1.0 diff --git a/python/plugins/processing/tests/testdata/custom/grass7/rliconfigmoving b/python/plugins/processing/tests/testdata/custom/grass7/rliconfigmoving new file mode 100644 index 00000000000..48a896bf0e9 --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/rliconfigmoving @@ -0,0 +1,3 @@ +SAMPLINGFRAME 0.1223021582733813|0.14678899082568808|0.26605504587155965|0.39568345323741005 +SAMPLEAREA -1|-1|0.09174311926605505|0.07194244604316546 +MOVINGWINDOW diff --git a/python/plugins/processing/tests/testdata/custom/grass7/weighted.csv b/python/plugins/processing/tests/testdata/custom/grass7/weighted.csv new file mode 100644 index 00000000000..b604ffa0168 --- /dev/null +++ b/python/plugins/processing/tests/testdata/custom/grass7/weighted.csv @@ -0,0 +1,4 @@ +1,2,0.65 +3,4,0.32 +5,6,0.54 + diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.category.out.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.category.out.txt new file mode 100644 index 00000000000..adb51fe5233 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.category.out.txt @@ -0,0 +1,5 @@ +1 +2 +3 +4 +5 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.coin.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.coin.txt new file mode 100644 index 00000000000..3ea66dacecb --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.coin.txt @@ -0,0 +1,35 @@ + ++------------------------------------------------------------------------------+ +| COINCIDENCE TABULATION REPORT | +|------------------------------------------------------------------------------| +| Location: temp_location Mapset: PERMANENT Date: Sun Jun 26 11:43:50 | +| | +| Layer 1: tmp146693422996-- | +| Layer 2: tmp146693422996-- | +| Mask: Aucun | +| | +| Units: percent cover | +|------------------------------------------------------------------------------| +| Window: North: 6693700 | +| West: 344500 East: 358400 | +| South: 6682800 | ++------------------------------------------------------------------------------+ + +Panel #1 of 1 ++--------------------------------------------------------------------------------+ +-----------------------+ +| | tmp14669342299627 | Panel Row Total | | Table Row Total | +| cat# | 1 | 2 | 3 | 4 | w cat 0 | w/o cat 0 | | w cat 0 | w/o cat 0 | +|--------------------------------------------------------------------------------| |-----------------------| +|t 1 | 0.29 | 1.55 | 5.10 | 6.14 | 13.08 | 13.08 | | 13.08 | 13.08 | +|m 2 | 0.12 | 0.69 | 2.36 | 2.81 | 5.98 | 5.98 | | 5.98 | 5.98 | +|p 3 | 0.28 | 1.39 | 5.50 | 6.59 | 13.75 | 13.75 | | 13.75 | 13.75 | +|1 4 | 0.36 | 2.20 | 8.22 | 8.86 | 19.64 | 19.64 | | 19.64 | 19.64 | +|4 5 | 0.30 | 1.35 | 5.04 | 6.14 | 12.83 | 12.83 | | 12.83 | 12.83 | +|6 6 | 0.61 | 3.89 | 12.91 | 15.31 | 32.73 | 32.73 | | 32.73 | 32.73 | +|--------------------------------------------------------------------------------| |-----------------------| +|Total | | | | | | | | | | +|with 0 | 1.96 | 11.08 | 39.13 | 45.85 | 98.02 | 98.02 | | 98.02 | 98.02 | +|--------------------------------------------------------------------------------| |-----------------------| +|w/o 0 | 1.96 | 11.08 | 39.13 | 45.85 | 98.02 | 98.02 | | 98.02 | 98.02 | ++--------------------------------------------------------------------------------+ +-----------------------+ + diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.colors.out.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.colors.out.txt new file mode 100644 index 00000000000..5c280fb7d1b --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.colors.out.txt @@ -0,0 +1,4 @@ +-303 0:0:0 +14847 255:255:255 +nv 255:255:255 +default 255:255:255 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.covar.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.covar.txt new file mode 100644 index 00000000000..56823bb5649 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.covar.txt @@ -0,0 +1,4 @@ +N = 14743 +3.032568 0.048485 -0.000132 +0.048485 2.232202 -0.013692 +-0.000132 -0.013692 0.561513 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.describe.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.describe.txt new file mode 100644 index 00000000000..0b73010262a --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.describe.txt @@ -0,0 +1 @@ +0 1-6 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.distance.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.distance.txt new file mode 100644 index 00000000000..d1ce89ca7b4 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.distance.txt @@ -0,0 +1,4 @@ +1:1:0:344550:6693650:344550:6693650 +2:1:100:355550:6693650:355550:6693550 +3:1:100:352750:6693650:352650:6693650 +4:1:100:344650:6693650:344550:6693650 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.info.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.info.txt new file mode 100644 index 00000000000..699e947667a --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.info.txt @@ -0,0 +1,29 @@ + +----------------------------------------------------------------------------+ + | Map: tmp14669386814521 Date: Sun Jun 26 12:58:01 2016 | + | Mapset: PERMANENT Login of Creator: medspx | + | Location: temp_location | + | DataBase: /tmp/processingd1287b3c04994d8a8ed29b67a67c13bb/grassdata | + | Title: ( tmp14669386814521 ) | + | Timestamp: none | + |----------------------------------------------------------------------------| + | | + | Type of Map: raster Number of Categories: 0 | + | Data Type: FCELL | + | Rows: 109 | + | Columns: 139 | + | Total Cells: 15151 | + | Projection: unnamed | + | N: 6693700 S: 6682800 Res: 100 | + | E: 358400 W: 344500 Res: 100 | + | Range of data: min = -303 max = 14847 | + | | + | Data Description: | + | gnr par r.external | + | | + | Comments: | + | r.external --overwrite -o input="/home/medspx/projects/QGIS/code/pyt\ | + | hon/plugins/processing/tests/testdata/custom/grass7/float_raster.tif\ | + | " output="tmp14669386814521" band=1 | + | | + +----------------------------------------------------------------------------+ + diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.kappa.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.kappa.txt new file mode 100644 index 00000000000..5fa803cb651 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.kappa.txt @@ -0,0 +1,59 @@ + ACCURACY ASSESSMENT +LOCATION: temp_location Sun Jun 26 12:49:27 2016 +MASK: none +MAPS: MAP1 = (untitled) (tmp14669381667410 in PERMANENT) + MAP2 = (untitled) (tmp1466938166749 in PERMANENT) + +Error Matrix +Panel #1 of 2 + MAP1 + cat# 1 2 3 4 5 + M 1 44 18 42 55 45 + A 2 0 0 0 0 0 + P 3 0 0 0 0 0 + 2 4 0 0 0 0 0 + 5 0 0 0 0 0 + 6 0 0 0 0 0 +Col Sum 44 18 42 55 45 + +Panel #2 of 2 + MAP1 + cat# 6 Row Sum + M 1 93 297 + A 2 0 0 + P 3 0 0 + 2 4 0 0 + 5 0 0 + 6 0 0 +Col Sum 93 297 + + +Cats % Commission % Ommission Estimated Kappa +1 85.185185 0.000000 0.000000 +2 NA NA NA +3 NA NA NA +4 NA NA NA +5 NA NA NA +6 NA NA NA + +Kappa Kappa Variance +0.000000 0.005729 + +Obs Correct Total Obs % Observed Correct +44 297 14.814815 + +MAP1 Category Description +1: (no description) +2: (no description) +3: (no description) +4: (no description) +5: (no description) +6: (no description) + +MAP2 Category Description +1: (no description) +2: (no description) +3: (no description) +4: (no description) +5: (no description) +6: (no description) diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.cwed.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.cwed.ascii.txt new file mode 100644 index 00000000000..f9d9d99a6be --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.cwed.ascii.txt @@ -0,0 +1 @@ +RESULT 1|1484.18 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.dominance.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.dominance.ascii.txt new file mode 100644 index 00000000000..f82a542fbb6 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.dominance.ascii.txt @@ -0,0 +1 @@ +RESULT 1|0.121643391969718 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.edgedensity.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.edgedensity.ascii.txt new file mode 100644 index 00000000000..2ac947344bd --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.edgedensity.ascii.txt @@ -0,0 +1 @@ +RESULT 1|24.86 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.mpa.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.mpa.ascii.txt new file mode 100644 index 00000000000..7a96448525b --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.mpa.ascii.txt @@ -0,0 +1 @@ +RESULT 1|4.13433333333333 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.mps.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.mps.ascii.txt new file mode 100644 index 00000000000..6f8ebc8b3a1 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.mps.ascii.txt @@ -0,0 +1 @@ +RESULT 1|1.6642627316099 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.padcv.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padcv.ascii.txt new file mode 100644 index 00000000000..6607dfd2b33 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padcv.ascii.txt @@ -0,0 +1 @@ +RESULT 1|102.492806034809 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.padrange.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padrange.ascii.txt new file mode 100644 index 00000000000..3aa788964a1 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padrange.ascii.txt @@ -0,0 +1 @@ +RESULT 1|36 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.padsd.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padsd.ascii.txt new file mode 100644 index 00000000000..311c4e0556d --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.padsd.ascii.txt @@ -0,0 +1 @@ +RESULT 1|1.70574957341855 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchdensity.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchdensity.ascii.txt new file mode 100644 index 00000000000..dd57e2eb8f0 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchdensity.ascii.txt @@ -0,0 +1 @@ +RESULT 1|60.0866666666667 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchnum.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchnum.ascii.txt new file mode 100644 index 00000000000..65b416966f3 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.patchnum.ascii.txt @@ -0,0 +1 @@ +RESULT 1|9013 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.pielou.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.pielou.ascii.txt new file mode 100644 index 00000000000..8bee3e49d23 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.pielou.ascii.txt @@ -0,0 +1 @@ +RESULT 1|0.932109530291962 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.renyi.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.renyi.ascii.txt new file mode 100644 index 00000000000..a505901dadb --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.renyi.ascii.txt @@ -0,0 +1 @@ +RESULT 1|1.47108219688802 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.richness.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.richness.ascii.txt new file mode 100644 index 00000000000..0cc0de09a54 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.richness.ascii.txt @@ -0,0 +1 @@ +RESULT 1|6 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.shannon.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.shannon.ascii.txt new file mode 100644 index 00000000000..8825943c5a1 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.shannon.ascii.txt @@ -0,0 +1 @@ +RESULT 1|1.67011607725834 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.shape.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.shape.ascii.txt new file mode 100644 index 00000000000..8384dcd5047 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.shape.ascii.txt @@ -0,0 +1 @@ +RESULT 1|97.1875880278272 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.li.simpson.ascii.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.li.simpson.ascii.txt new file mode 100644 index 00000000000..462cb8df316 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.li.simpson.ascii.txt @@ -0,0 +1 @@ +RESULT 1|0.790194657777778 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.stats.quantile.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.stats.quantile.txt new file mode 100644 index 00000000000..d967977ec50 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.stats.quantile.txt @@ -0,0 +1,30 @@ +1:0:16.666667:30.166667 +1:1:33.333333:363.333333 +1:2:50.000000:696.500000 +1:3:66.666667:1029.666667 +1:4:83.333333:1362.833333 +2:0:16.666667:1899.666667 +2:1:33.333333:2002.666667 +2:2:50.000000:2156.000000 +2:3:66.666667:2309.333333 +2:4:83.333333:2462.666667 +3:0:16.666667:2967.666667 +3:1:33.333333:3319.333333 +3:2:50.000000:3671.000000 +3:3:66.666667:4022.666667 +3:4:83.333333:4374.333333 +4:0:16.666667:5561.000000 +4:1:33.333333:5729.333333 +4:2:50.000000:6231.000000 +4:3:66.666667:6732.666667 +4:4:83.333333:7234.333333 +5:0:16.666667:8062.666667 +5:1:33.333333:8389.333333 +5:2:50.000000:8716.000000 +5:3:66.666667:9042.666667 +5:4:83.333333:9369.333333 +6:0:16.666667:10529.500000 +6:1:33.333333:11363.000000 +6:2:50.000000:12613.000000 +6:3:66.666667:13030.000000 +6:4:83.333333:6931.500000 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.stats.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.stats.txt new file mode 100644 index 00000000000..007ecf54a91 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.stats.txt @@ -0,0 +1,188 @@ +1 1 1 10 +1 1 2 48 +1 1 3 170 +1 1 4 197 +1 1 * 2 +1 2 1 1 +1 2 2 15 +1 2 3 56 +1 2 4 47 +1 2 * 1 +1 3 1 8 +1 3 2 28 +1 3 3 93 +1 3 4 139 +1 3 * 4 +1 4 1 12 +1 4 2 57 +1 4 3 208 +1 4 4 256 +1 4 * 6 +1 5 1 13 +1 5 2 86 +1 5 3 239 +1 5 4 285 +1 5 * 4 +1 * 2 1 +1 * 3 6 +1 * 4 7 +2 1 1 5 +2 1 2 30 +2 1 3 64 +2 1 4 83 +2 1 * 2 +2 2 2 7 +2 2 3 26 +2 2 4 23 +2 2 * 3 +2 3 1 3 +2 3 2 11 +2 3 3 45 +2 3 4 64 +2 3 * 1 +2 4 1 1 +2 4 2 17 +2 4 3 104 +2 4 4 118 +2 4 * 4 +2 5 1 9 +2 5 2 39 +2 5 3 117 +2 5 4 132 +2 5 * 4 +2 * 2 1 +2 * 3 2 +2 * 4 5 +3 1 1 5 +3 1 2 43 +3 1 3 167 +3 1 4 184 +3 1 * 3 +3 2 1 2 +3 2 2 13 +3 2 3 55 +3 2 4 77 +3 2 * 2 +3 3 1 9 +3 3 2 25 +3 3 3 105 +3 3 4 145 +3 3 * 2 +3 4 1 16 +3 4 2 62 +3 4 3 231 +3 4 4 259 +3 4 * 3 +3 5 1 9 +3 5 2 67 +3 5 3 270 +3 5 4 327 +3 5 * 16 +3 * 1 1 +3 * 2 1 +3 * 3 5 +3 * 4 6 +4 1 1 8 +4 1 2 69 +4 1 3 254 +4 1 4 288 +4 1 * 11 +4 2 1 5 +4 2 2 15 +4 2 3 67 +4 2 4 82 +4 2 * 3 +4 3 1 9 +4 3 2 48 +4 3 3 181 +4 3 4 182 +4 3 * 3 +4 4 1 16 +4 4 2 88 +4 4 3 334 +4 4 4 338 +4 4 * 9 +4 5 1 17 +4 5 2 112 +4 5 3 405 +4 5 4 445 +4 5 * 8 +4 * 2 1 +4 * 3 5 +4 * 4 7 +5 1 1 5 +5 1 2 36 +5 1 3 143 +5 1 4 178 +5 1 * 4 +5 2 2 14 +5 2 3 52 +5 2 4 53 +5 2 * 2 +5 3 1 7 +5 3 2 35 +5 3 3 116 +5 3 4 136 +5 3 * 1 +5 4 1 11 +5 4 2 50 +5 4 3 198 +5 4 4 235 +5 4 * 5 +5 5 1 20 +5 5 2 69 +5 5 3 248 +5 5 4 318 +5 5 * 4 +5 * 1 2 +5 * 2 1 +5 * 3 6 +5 * 4 11 +6 1 1 10 +6 1 2 100 +6 1 3 381 +6 1 4 462 +6 1 * 8 +6 2 1 9 +6 2 2 33 +6 2 3 108 +6 2 4 143 +6 2 * 2 +6 3 1 15 +6 3 2 87 +6 3 3 273 +6 3 4 307 +6 3 * 8 +6 4 1 22 +6 4 2 166 +6 4 3 532 +6 4 4 604 +6 4 * 10 +6 5 1 37 +6 5 2 198 +6 5 3 648 +6 5 4 784 +6 5 * 14 +6 * 2 6 +6 * 3 14 +6 * 4 20 +* 1 2 4 +* 1 3 16 +* 1 4 9 +* 2 1 1 +* 2 2 2 +* 2 4 2 +* 3 2 2 +* 3 3 7 +* 3 4 10 +* 3 * 1 +* 4 1 2 +* 4 2 4 +* 4 3 19 +* 4 4 12 +* 4 * 1 +* 5 2 9 +* 5 3 29 +* 5 4 18 +* * 3 1 +* * 4 2 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.surf.area.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.surf.area.txt new file mode 100644 index 00000000000..2c8a9e9d420 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.surf.area.txt @@ -0,0 +1,6 @@ +Null value area ignored in calculation: 1510000.000000 +Plan area used in calculation: 149040000.000000 +Surface area calculation(low, high, avg): + 143171894.810657 143200607.945173 143186251.377915 +Current region plan area: 151510000.000000 +Estimated region Surface Area: 145559238.769913 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.terraflow.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.terraflow.txt new file mode 100644 index 00000000000..749aa316478 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.terraflow.txt @@ -0,0 +1 @@ +Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode. diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.tileset.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.tileset.txt new file mode 100644 index 00000000000..f6974ef2dd1 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.tileset.txt @@ -0,0 +1 @@ +-1.36308465|-5.98385631|-1.36301901|-5.98379059|2|2 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.topomodel.topidxstats.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.topomodel.topidxstats.txt new file mode 100644 index 00000000000..d7d1e14eaff --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.topomodel.topidxstats.txt @@ -0,0 +1,30 @@ + 1.485e+04 0.000e+00 + 1.432e+04 3.452e-02 + 1.380e+04 3.445e-02 + 1.328e+04 3.452e-02 + 1.276e+04 3.445e-02 + 1.223e+04 3.452e-02 + 1.171e+04 3.445e-02 + 1.119e+04 3.445e-02 + 1.067e+04 3.452e-02 + 1.015e+04 3.445e-02 + 9.623e+03 3.452e-02 + 9.100e+03 3.445e-02 + 8.578e+03 3.445e-02 + 8.056e+03 3.452e-02 + 7.533e+03 3.445e-02 + 7.011e+03 3.452e-02 + 6.488e+03 3.445e-02 + 5.966e+03 3.452e-02 + 5.444e+03 3.445e-02 + 4.921e+03 3.445e-02 + 4.399e+03 3.452e-02 + 3.876e+03 3.445e-02 + 3.354e+03 3.452e-02 + 2.831e+03 3.445e-02 + 2.309e+03 3.445e-02 + 1.787e+03 3.452e-02 + 1.264e+03 3.445e-02 + 7.418e+02 3.452e-02 + 2.194e+02 3.445e-02 +-3.030e+02 3.452e-02 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.transect.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.transect.txt new file mode 100644 index 00000000000..a03943b3f4a --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.transect.txt @@ -0,0 +1,10 @@ + 0.000000 11058.000000 + 100.000000 684.000000 + 200.000000 10791.000000 + 300.000000 328.000000 + 400.000000 13292.000000 + 500.000000 459.000000 + 600.000000 5546.000000 + 700.000000 12769.000000 + 800.000000 -160.000000 + 900.000000 9926.000000 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.univar.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.univar.txt new file mode 100644 index 00000000000..9b667bd4b98 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.univar.txt @@ -0,0 +1,2 @@ +non_null_cells|null_cells|min|max|range|mean|mean_of_abs|stddev|variance|coeff_var|sum|sum_abs +30040|262|1|6|5|3.80246338215712|3.80246338215712|1.65577930801025|2.7416051168349|43.5449113272179|114226|114226 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.what.colors.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.what.colors.txt new file mode 100644 index 00000000000..08947a7bc9f --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.what.colors.txt @@ -0,0 +1,2 @@ +14011: 255:0:71 +6055: 0:230:255 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.what.coords.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.what.coords.txt new file mode 100644 index 00000000000..9b00682fd96 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.what.coords.txt @@ -0,0 +1 @@ +348371|6688828||2 diff --git a/python/plugins/processing/tests/testdata/expected/grass7/r.what.points.txt b/python/plugins/processing/tests/testdata/expected/grass7/r.what.points.txt new file mode 100644 index 00000000000..ce4035ee3de --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/grass7/r.what.points.txt @@ -0,0 +1,3 @@ +348815.70143898|6687991.90993828||3 +354369.087594644|6689166.66470198||2 +349100.490472604|6692050.15366742||3 diff --git a/python/plugins/processing/tests/testdata/grass7_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/grass7_algorithms_imagery_tests.yaml similarity index 100% rename from python/plugins/processing/tests/testdata/grass7_algorithm_tests.yaml rename to python/plugins/processing/tests/testdata/grass7_algorithms_imagery_tests.yaml diff --git a/python/plugins/processing/tests/testdata/grass7_algorithms_raster_tests.yaml b/python/plugins/processing/tests/testdata/grass7_algorithms_raster_tests.yaml new file mode 100644 index 00000000000..831bdc5b828 --- /dev/null +++ b/python/plugins/processing/tests/testdata/grass7_algorithms_raster_tests.yaml @@ -0,0 +1,1761 @@ +# See ../README.md for a description of the file format + +tests: +# r.* modules + - algorithm: grass7:r.plane + name: GRASS7 r.plane + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + azimuth: 125 + dip: 45 + easting: 351610 + elevation: 50 + northing: 6688312 + type: 1 + results: + output: + hash: a9326678c39b6f925e7f22f6e79a48217100071cc8af85d675f28462 + type: rasterhash + + - algorithm: grass7:r.reclass + name: GRASS7 r.reclass + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_4class.tif + type: raster + txtrules: 1 = 1\n* = NULL + results: + output: + hash: c50654b0c3ea019a14e9319e5f9be673d0e7fdd40a002a753fe88a7b + type: rasterhash + + - algorithm: grass7:r.buffer + name: GRASS7 r.buffer + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + distances: 500,1500 + input: + name: custom/grass7/raster_1class.tif + type: raster + units: 0 + results: + output: + hash: 288fa95adddf1f1d139db7a56678e1bf3726610cfacde4c95d9d0ed5 + type: rasterhash + + - algorithm: grass7:r.buffer.lowmem + name: GRASS7 r.buffer.lowmem + params: + -z: False + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + distances: 500,1500 + input: + name: custom/grass7/raster_1class.tif + type: raster + units: 0 + results: + output: + hash: 288fa95adddf1f1d139db7a56678e1bf3726610cfacde4c95d9d0ed5 + type: rasterhash + + - algorithm: grass7:r.blend.combine + name: GRASS7 r.blend.combine + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + first: + name: custom/grass7/float_raster.tif + type: raster + percent: 50 + second: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: a32af325d511525f74df50a3ffcf0f448e28fe9018a3e3116e34947e + type: rasterhash + + - algorithm: grass7:r.blend.rgb + name: GRASS7 r.blend.rgb + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + first: + name: custom/grass7/float_raster.tif + type: raster + percent: 50 + second: + name: custom/grass7/raster_6class.tif + type: raster + results: + output_blue: + hash: f8ab20fdd7aead09f6d42d7eee668168dec102df85bac3d5632ea30b + type: rasterhash + output_green: + hash: 7b7f26391fdb60f6cfff3b976720ee7464a80da62e2d4e7c0a1f639a + type: rasterhash + output_red: + hash: a1cedc7dd0b5ba977aff5e0908fb8b0f40edae82daef54295d98e6df + type: rasterhash + + - algorithm: grass7:r.circle + name: GRASS7 r.circle + params: + -b: false + GRASS_REGION_CELLSIZE_PARAMETER: 0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + coordinates: 351610,6688312 + max: 2000 + min: 500 + multiplier: '1' + results: + output: + hash: e4eab441b88a873df44afe26c7c96d40d0944a5743953ffc18696c73 + type: rasterhash + + - algorithm: grass7:r.clump + name: GRASS7 r.clump + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + title: TESTS + results: + output: + hash: 93df1dbc135f28781730d7b20a6ee52f0505320e355132a454abb4b9 + type: rasterhash + + - algorithm: grass7:r.what.points + name: GRASS7 r.what.points + params: + -c: false + -f: false + -i: false + -n: false + -r: false + GRASS_MIN_AREA_PARAMETER: 0.0001 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + GRASS_SNAP_TOLERANCE_PARAMETER: -1 + cache: 500 + map: + name: custom/grass7/raster_4class.tif + type: raster + null_value: '*' + points: + name: custom/grass7/points.shp + type: vector + separator: pipe + results: + output: + type: file + name: expected/grass7/r.what.points.txt + + - algorithm: grass7:r.what.coords + name: GRASS7 r.what.coords + params: + -c: false + -f: false + -i: false + -n: false + -r: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + cache: 500 + coordinates: 348371,6688828 + map: + name: custom/grass7/raster_4class.tif + type: raster + null_value: '*' + separator: pipe + results: + output: + type: file + name: expected/grass7/r.what.coords.txt + - algorithm: grass7:r.what.color + name: GRASS7 r.what.color + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + format: '' + input: + name: custom/grass7/float_raster.tif + type: raster + value: 14011,6055 + results: + output: + name: expected/grass7/r.what.colors.txt + type: file + + - algorithm: grass7:r.water.outlet + name: GRASS7 r.water.outlet + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + coordinates: 351610,6688312 + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 74f818490bca6fcde2d4c628e2643566ff630ef563591973ce8520d3 + type: rasterhash + + - algorithm: grass7:r.walk.rast + name: GRASS7 r.walk.rast + params: + -k: false + -n: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + friction: + name: custom/grass7/raster_6class.tif + type: raster + lambda: 1.0 + max_cost: 0.0 + memory: 300 + null_cost: 0.0 + slope_factor: -0.2125 + start_raster: + name: custom/grass7/raster_1class.tif + type: raster + walk_coeff: 0.72,6.0,1.9998,-1.9998 + results: + outdir: + hash: 34e6ef655b1ae4f50887bb65131c9001dde36ba9fc2ed3ff50208336 + type: rasterhash + output: + hash: faef007aba35c7dc4e8b7438f29a9ad9387c72b96d17d5d1c6ec8188 + type: rasterhash + + - algorithm: grass7:r.walk.points + name: GRASS7 r.walk.points + params: + -k: false + -n: false + GRASS_MIN_AREA_PARAMETER: 0.0001 + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + GRASS_SNAP_TOLERANCE_PARAMETER: -1.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + friction: + name: custom/grass7/raster_6class.tif + type: raster + lambda: 1.0 + max_cost: 0.0 + memory: 300 + null_cost: 0.0 + slope_factor: -0.2125 + start_points: + name: custom/grass7/points.shp + type: vector + walk_coeff: 0.72,6.0,1.9998,-1.9998 + results: + outdir: + hash: c93e715db431ab2ad46e57b3915d22a6dc256c195eeb70e8e6e2946e + type: rasterhash + output: + hash: 30c77235f565bd95fe62b17de4869c3811de7bd3de85024bcd943ff6 + type: rasterhash + + - algorithm: grass7:r.walk.coords + name: GRASS7 r.walk.coords + params: + -k: false + -n: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + friction: + name: custom/grass7/raster_6class.tif + type: raster + lambda: 1.0 + max_cost: 0.0 + memory: 300 + null_cost: 0.0 + slope_factor: -0.2125 + start_coordinates: 351610,6688312 + stop_coordinates: 351710,6688812 + walk_coeff: 0.72,6.0,1.9998,-1.9998 + results: + outdir: + hash: 2422acf9b01caade6a39c111a039b5f14e881de972b514e5b1889ba7 + type: rasterhash + output: + hash: 7cea72cb9c5cef75849ac59ccf8396be4abcc72f51408ab108426a88 + type: rasterhash + + - algorithm: grass7:r.usler + name: GRASS7 r.usler + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/float_raster.tif + type: raster + method: 0 + results: + output: + hash: 8b7bf2df641d34135106a6451770a87aa5f14a37d4b61468ebfaa5c1 + type: rasterhash + + - algorithm: grass7:r.univar + name: GRASS7 r.univar + params: + -e: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + params: + - name: custom/grass7/raster_6class.tif + type: raster + - name: custom/grass7/raster_5class.tif + type: raster + type: multi + percentile: '' + separator: pipe + results: + output: + name: expected/grass7/r.univar.txt + type: file + + - algorithm: grass7:r.topmodel.topidxstats + name: GRASS7 r.topmodel.topidxstats + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + ntopidxclasses: 30 + topidx: + name: custom/grass7/float_raster.tif + type: raster + results: + outtopidxstats: + name: expected/grass7/r.topomodel.topidxstats.txt + type: file + + - algorithm: grass7:r.topidx + name: GRASS7 r.topidx + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/float_raster.tif + type: raster + results: + output: + hash: 6b4dcffae16a630e655a57e346a1a8a58d2f22760dcf2deb28ede7b5 + type: rasterhash + + - algorithm: grass7:r.thin + name: GRASS7 r.thin + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + iterations: '200' + results: + output: + hash: 0012dbb0f83db91896ce36c6d4ad080ac5a3d60418ccd654521eca98 + type: rasterhash + + - algorithm: grass7:r.surf.idw + name: GRASS7 r.surf.idw + params: + -e: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + npoints: 12 + results: + output: + hash: f207480b8e1eef990f483d156732aa53ace3d524dc1470f749f638bc + type: rasterhash + + - algorithm: grass7:r.surf.contour + name: GRASS7 r.surf.contour + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: b147ed0a7ac16afa33bed88c0bd94042f01b529225371fa9ce4a1d8b + type: rasterhash + + - algorithm: grass7:r.surf.area + name: GRASS7 r.surf.area + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/raster_6class.tif + type: raster + units: '2' + vscale: 1 + results: + rawoutput: + name: expected/grass7/r.surf.area.txt + type: file + + - algorithm: grass7:r.sunmask.position + name: GRASS7 r.sunmask.position + params: + -s: false + -z: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + altitude: 80.0 + azimuth: 100.0 + east: '351610' + elevation: + name: custom/grass7/raster_6class.tif + type: raster + north: '6685312' + results: + output: + hash: 74bb329868969f3eff013800aae29cd1ab8cbc3983051fdf5d18b756 + type: rasterhash + + - algorithm: grass7:r.sunmask.datetime + name: GRASS7 r.sunmask.datetime + params: + -s: false + -z: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + day: 1 + east: '351610' + elevation: + name: custom/grass7/raster_6class.tif + type: raster + hour: 12 + minute: 0 + month: 1 + north: '6685312' + second: 0 + timezone: 0.0 + year: 2010 + results: + output: + hash: 95e064f05759606bc60f1dfa88931f545c066629c1f07919156ac03b + type: rasterhash + + - algorithm: grass7:r.sun + name: GRASS7 r.sun + params: + -m: false + -p: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + aspect: + name: custom/grass7/float_raster.tif + type: raster + day: 1 + declination: 0.0 + distance_step: 1.0 + elevation: + name: custom/grass7/raster_6class.tif + type: raster + slope: + name: custom/grass7/float_raster.tif + type: raster + step: 0.5 + results: + beam_rad: + hash: c43a64c35cd5999888b1dc7099249a54f37df8658cbe9c30b92627e5 + type: rasterhash + diff_rad: + hash: ecaa83578ab6eaf24a48f2fc265e8f1deff743c145af9c85cd39bceb + type: rasterhash + glob_rad: + hash: 3917bc5633ce2225c864055d4b3c952b87461cbe48093b8fd9738215 + type: rasterhash + insol_time: + hash: 64851f59edafe67d007da78f33b7491b949d5be3eca83ef513e2b11f + type: rasterhash + refl_rad: + hash: cd2002486c5117db9c493e365ff6983faf1ea92b1bbea87569d3ebdd + type: rasterhash + + - algorithm: grass7:r.stats.quantile.out + name: GRASS7 r.stats.quantile.out + params: + -r: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + base: + name: custom/grass7/raster_6class.tif + type: raster + bins: 1000 + cover: + name: custom/grass7/float_raster.tif + type: raster + percentiles: '' + quantiles: '6' + results: + output: + name: expected/grass7/r.stats.quantile.txt + type: file + + - algorithm: grass7:r.stats + name: GRASS7 r.stats + params: + '-1': false + -A: true + -C: false + -N: false + -a: false + -c: true + -g: false + -i: false + -l: false + -n: false + -p: false + -r: false + -x: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + params: + - name: custom/grass7/raster_6class.tif + type: raster + - name: custom/grass7/raster_5class.tif + type: raster + - name: custom/grass7/raster_4class.tif + type: raster + type: multi + nsteps: '255' + nv: '*' + separator: space + results: + rawoutput: + name: expected/grass7/r.stats.txt + type: file + + - algorithm: grass7:r.statistics + name: GRASS7 r.statistics + params: + -c: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + base: + name: custom/grass7/raster_4class.tif + type: raster + cover: + name: custom/grass7/raster_6class.tif + type: raster + method: '0' + results: + output: + hash: 57def04673343492d83c9572979d752fd7f2d996a2b4bb4cd0a01982 + type: rasterhash + + - algorithm: grass7:r.spread + name: GRASS7 r.spread + params: + -i: false + -s: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + base_ros: + name: custom/grass7/float_raster.tif + type: raster + comp_dens: 0.5 + direction_ros: + name: custom/grass7/raster_6class.tif + type: raster + init_time: 0 + lag: 0 + least_size: '0' + max_ros: + name: custom/grass7/raster_5class.tif + type: raster + start: + name: custom/grass7/raster_1class.tif + type: raster + results: + output: + hash: 0c3e696ea76577c5fa909ebe31b67bef56794ebd33c376c1d836d58e + type: rasterhash + x_output: + hash: cb43ff482d2254e7ff24e8c829d2f58fcae90e567aa4129444934a3a + type: rasterhash + y_output: + hash: 26e69127c3670fecd7cac6c96660e9e041315c0f5225c4367c49b6a5 + type: rasterhash + + - algorithm: grass7:r.slope.aspect + name: GRASS7 r.slope.aspect + params: + -a: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + format: '0' + min_slope: 0.0 + precision: '0' + zscale: 1.0 + results: + aspect: + hash: 7b18170d277ae3254b8e354ae5a1dc09473405e9068b5ea96d41869d + type: rasterhash + dx: + hash: 5fb06253296ab57448b5d50765d662979ef350b2150ea41d1acfb67a + type: rasterhash + dxx: + hash: d8a554dfb3f3b5ec5470aed10f189074723b55a99893dcab8ef025b0 + type: rasterhash + dxy: + hash: 7ff41f0cb413603ac6f2b4b97c8cd5cdc0ee98c1e61aac6c7f4bb392 + type: rasterhash + dy: + hash: 9f85859b62e62b99ec10be64fffb0eee2105b4f29dce80c0ece4294d + type: rasterhash + dyy: + hash: 4a5a9acfab2016a11cb491a34aa8c3bddd8bf3a3092535989e5a2fe8 + type: rasterhash + pcurvature: + hash: 7cd1b6880fc12872cf9aa6c0991fe3d7f331f806a0420786fd5fdadd + type: rasterhash + slope: + hash: 873b900f4ae7548b678cc09268f5b430507637f030d30594e72c07ad + type: rasterhash + tcurvature: + hash: db3fd612f5e138df9b0aaf741602d87fc5ab15d14e5bd6c7b197dc57 + type: rasterhash + + - algorithm: grass7:r.slope + name: GRASS7 r.slope + params: + -a: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + min_slope: 0.0 + precision: '0' + zscale: 1.0 + results: + slope: + hash: 873b900f4ae7548b678cc09268f5b430507637f030d30594e72c07ad + type: rasterhash + + - algorithm: grass7:r.aspect + name: GRASS7 r.aspect + params: + -a: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + min_slope: 0.0 + precision: '0' + zscale: 1.0 + results: + aspect: + hash: 7b18170d277ae3254b8e354ae5a1dc09473405e9068b5ea96d41869d + type: rasterhash + + - algorithm: grass7:r.shade + name: GRASS7 r.shade + params: + -c: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + bgcolor: '' + brighten: 0 + color: + name: custom/grass7/raster_6class.tif + type: raster + shade: + name: custom/grass7/float_raster.tif + type: raster + results: + output: + hash: 5ff46b395742081093f1fe43421a18104bb784033e26c6da5b11d5c3 + type: rasterhash + + - algorithm: grass7:r.series + name: GRASS7 r.series + params: + -n: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + params: + - name: custom/grass7/raster_6class.tif + type: raster + - name: custom/grass7/float_raster.tif + type: raster + type: multi + method: 0 + range: -10000000000,10000000000 + results: + output: + hash: 19ca3124af3dc68294f73327a0c80596eaed5fcbf46cfb7e784d17f5 + type: rasterhash + + - algorithm: grass7:r.category + name: GRASS7 r.category + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/raster_4class.tif + type: raster + txtrules: '1: First\n2: Second\n3: Nothing\n4: What you want' + results: + output: + hash: 59b41078ca329fc59eab84097ba8601cf9a1ad823867bf16d1bac044 + type: rasterhash + + - algorithm: grass7:r.category.out + name: GRASS7 r.category.out + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/raster_5class.tif + type: raster + results: + output: + name: expected/grass7/r.category.out.txt + type: file + + - algorithm: grass7:r.coin + name: GRASS7 r.coin + params: + -w: true + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + first: + name: custom/grass7/raster_4class.tif + type: raster + second: + name: custom/grass7/raster_6class.tif + type: raster + units: '1' + results: + rawoutput: + type: regex + name: expected/grass7/r.coin.txt + rules: + - '|t 1 | 0.29 | 1.55 | 5.10 | 6.14 | 13.08 | 13.08 |' + - '|m 2 | 0.12 | 0.69 | 2.36 | 2.81 | 5.98 | 5.98 |' + - '|p 3 | 0.28 | 1.39 | 5.50 | 6.59 | 13.75 | 13.75 |' + - '|1 4 | 0.36 | 2.20 | 8.22 | 8.86 | 19.64 | 19.64 |' + - '|4 5 | 0.30 | 1.35 | 5.04 | 6.14 | 12.83 | 12.83 |' + - '|6 6 | 0.61 | 3.89 | 12.91 | 15.31 | 32.73 | 32.73 |' + + - algorithm: grass7:r.colors.out + name: GRASS7 r.colors.out) + params: + -p: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/float_raster.tif + type: raster + results: + rules: + name: expected/grass7/r.colors.out.txt + type: file + + - algorithm: grass7:r.composite + name: GRASS7 r.composite + params: + -c: true + -d: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + blue: + name: custom/grass7/raster_6class.tif + type: raster + green: + name: custom/grass7/raster_5class.tif + type: raster + level_blue: 32 + level_green: 32 + level_red: 32 + red: + name: custom/grass7/raster_4class.tif + type: raster + results: + output: + hash: 48aa021881c74821c3ad6a5d2205ef74421814b5b2ac7bb8918d44d2 + type: rasterhash + + - algorithm: grass7:r.cost.coordinates + name: GRASS7 r.cost.coordinates + params: + -k: false + -n: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + max_cost: 0 + memory: 300 + null_cost: 0 + start_coordinates: 346371,6690604 + stop_coordinates: 356300,6688453 + results: + output: + hash: ed392f88d156af060917cec8e3fd69cd5b962cd82a67274861682ea1 + type: rasterhash + + - algorithm: grass7:r.cost.raster + name: GRASS7 r.cost.raster + params: + -k: false + -n: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + max_cost: 0 + memory: 300 + null_cost: 0 + start_raster: + name: custom/grass7/raster_1class.tif + type: raster + results: + output: + hash: ae9b2f9ddc60b57e1dbb7a0f989cbcf732fd339e80b450bbdfe48f20 + type: rasterhash + + - algorithm: grass7:r.cost.points + name: GRASS7 r.cost.points + params: + -k: false + -n: true + GRASS_MIN_AREA_PARAMETER: 0.0001 + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + GRASS_SNAP_TOLERANCE_PARAMETER: -1.0 + input: + name: custom/grass7/raster_6class.tif + type: raster + start_points: + name: custom/grass7/points.shp + type: vector + stop_points: + name: custom/grass7/points2.shp + type: vector + results: + output: + hash: d08b86dbf86d283f642381dd38ef62e0d6ec2ec905fcbee66fe631cd + type: rasterhash + + - algorithm: grass7:r.covar + name: GRASS7 r.covar + params: + -r: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + params: + - name: custom/grass7/raster_6class.tif + type: raster + - name: custom/grass7/raster_5class.tif + type: raster + - name: custom/grass7/raster_4class.tif + type: raster + type: multi + results: + rawoutput: + name: expected/grass7/r.covar.txt + type: file + + - algorithm: grass7:r.cross + name: GRASS7 r.cross + params: + -z: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + params: + - name: custom/grass7/raster_6class.tif + type: raster + - name: custom/grass7/raster_5class.tif + type: raster + - name: custom/grass7/raster_4class.tif + type: raster + type: multi + results: + output: + hash: 1eccafaa5b459c8a57e72d449f1586a4088bda82fe891f8687dbd94b + type: rasterhash + + - algorithm: grass7:r.describe + name: GRASS7 r.describe + params: + -d: false + -i: false + -n: false + -r: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/raster_6class.tif + type: raster + nsteps: 255 + nv: 0 + results: + rawoutput: + name: expected/grass7/r.describe.txt + type: file + + - algorithm: grass7:r.distance + name: GRASS7 r.distance + params: + -l: false + -n: false + -o: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + params: + - name: custom/grass7/raster_4class.tif + type: raster + - name: custom/grass7/raster_1class.tif + type: raster + type: multi + separator: ':' + sort: '0' + results: + output: + name: expected/grass7/r.distance.txt + type: file + + - algorithm: grass7:r.fill.dir + name: GRASS7 r.fill.dir + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + format: '0' + input: + name: custom/grass7/float_raster.tif + type: raster + results: + areas: + hash: 5edf01dbbe2d08fd89a52f662373bbe6acfa4bbc86f002697ecd9dcc + type: rasterhash + direction: + hash: 093995e21463d59ccd17b9e432a3a10cd2c1c25e8e415d3770578384 + type: rasterhash + output: + hash: c9b138bce89dbb17dfc3995c8338380e480ac5a1736981c73f146160 + type: rasterhash + + - algorithm: grass7:r.fillnulls + name: GRASS7 r.fillnulls + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + edge: 4 + input: + name: custom/grass7/raster_6class.tif + type: raster + method: '0' + npmin: 20 + segmax: 10 + smooth: 1.1 + tension: 20.0 + results: + output: + hash: 04e780c464528fc411f1531175a6ba78a44ce5f429e7b5f67f935b9f + type: rasterhash + + - algorithm: grass7:r.flow + name: GRASS7 r.flow + params: + '-3': false + -m: false + -u: false + GRASS_OUTPUT_TYPE_PARAMETER: '0' + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + bound: 1609 + elevation: + name: custom/grass7/float_raster.tif + type: raster + skip: 7 + results: + flowaccumulation: + hash: f9ac137eba82ffb462f2ee92ef6f51a27138d3aa3e2b59ad318884b7 + type: rasterhash + flowlength: + hash: 1396f17f7a5afbffdc3c31704029a0f826f56bc39a2c2a4a5a7d6efd + type: rasterhash + + - algorithm: grass7:r.flow.aspect + name: GRASS7 r.flow.aspect + params: + '-3': false + -m: false + -u: false + GRASS_OUTPUT_TYPE_PARAMETER: '0' + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + aspect: + name: custom/grass7/raster_6class.tif + type: raster + bound: 1609 + elevation: + name: custom/grass7/float_raster.tif + type: raster + skip: 7 + results: + flowaccumulation: + hash: cea321bb920029ebac058ac56b0052c1e7745d1e0ecc89fb00dc76d1 + type: rasterhash + flowlength: + hash: a9bd95b064f0ad585a2e71bee3c36cc32c4bf8010e35401074b9cdd0 + type: rasterhash + + - algorithm: grass7:r.his + name: GRASS7 r.his + params: + -c: true + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + hue: + name: custom/grass7/float_raster.tif + type: raster + intensity: + name: custom/grass7/raster_4class.tif + type: raster + saturation: + name: custom/grass7/raster_5class.tif + type: raster + results: + blue: + hash: 7fab6db4c0517dbd4a3d61181874ad0544383896ba5f4292c9418be2 + type: rasterhash + green: + hash: 7fab6db4c0517dbd4a3d61181874ad0544383896ba5f4292c9418be2 + type: rasterhash + red: + hash: 7fab6db4c0517dbd4a3d61181874ad0544383896ba5f4292c9418be2 + type: rasterhash + + - algorithm: grass7:r.kappa + name: GRASS7 r.kappa + params: + -h: false + -w: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + classification: + name: custom/grass7/raster_1class.tif + type: raster + reference: + name: custom/grass7/raster_6class.tif + type: raster + title: ACCURACY ASSESSMENT + results: + output: + name: expected/grass7/r.kappa.txt + type: regex + rules: + - '44 297 14.814815' + + - algorithm: grass7:r.lake.coords + name: GRASS7 r.lake.coords + params: + -n: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + coordinates: 350854,6688401 + elevation: + name: custom/grass7/raster_6class.tif + type: raster + water_level: 30.0 + results: + lake: + hash: 32056cee99277fa769e1e135f76c82bb122b30060485890112819126 + type: rasterhash + + - algorithm: grass7:r.lake.layer + name: GRASS7 r.lake.layer + params: + -n: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + elevation: + name: custom/grass7/float_raster.tif + type: raster + seed: + name: custom/grass7/raster_1class.tif + type: raster + water_level: 10000.0 + results: + lake: + hash: 539f4ac0347ad6b688f9a1af14d78ab26bbccac3f9916cc6f5204bc6 + type: rasterhash + + - algorithm: grass7:r.latlong + name: GRASS7 r.latlong + params: + -l: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + input: + name: custom/grass7/float_raster.tif + type: raster + results: + output: + hash: 418f93ebf06c0b5ae3c7a126513fe4384a3aaa6f8fb570f3d39e2877 + type: rasterhash + + - algorithm: grass7:r.info + name: GRASS7 r.info + params: + -d: false + -g: false + -h: false + -m: false + -p: false + -r: false + -s: false + -t: false + -u: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + map: + name: custom/grass7/float_raster.tif + type: raster + results: + rawoutput: + name: expected/grass7/r.info.txt + type: regex + rules: + - 'N: 6693700 S: 6682800 Res: 100' + - 'E: 358400 W: 344500 Res: 100' + + - algorithm: grass7:r.li.cwed + name: GRASS7 r.li.cwed + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + input: + name: custom/grass7/raster_6class.tif + type: raster + path: + name: custom/grass7/weighted.csv + type: file + results: + output: + hash: ec76f5b372d859548d580023dabc210dd8c76987eada6cde7c0b3e5a + type: rasterhash + + - algorithm: grass7:r.li.dominance + name: GRASS7 r.li.dominance + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 3df7cd453b8cebedc92a7d127e10b0eb1fdc6e1f2ff3c3b4ca578369 + type: rasterhash + + - algorithm: grass7:r.li.edgedensity + name: GRASS7 r.li.edgedensity + params: + -b: false + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + patch_type: '3' + results: + output: + hash: f7ff986b10f23376e788ca1544d15d9296bfe6c0317e3aad89a7446e + type: rasterhash + + - algorithm: grass7:r.li.mpa + name: GRASS7 r.li.mpa + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: d03a0795dc1a441cf6016dae791791f255b35e9c4b656c4956793041 + type: rasterhash + + - algorithm: grass7:r.li.mps + name: GRASS7 r.li.mps + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: f6ab86cd0b6148c4298921f80845cb573915e32d66af8bf7b4695250 + type: rasterhash + + - algorithm: grass7:r.li.padcv + name: GRASS7 r.li.padcv + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 1f351e437934e8655905fe42ee55d6918ec25f1ca737abd6d78b5246 + type: rasterhash + + - algorithm: grass7:r.li.padrange + name: GRASS7 r.li.padrange + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 83a3fdb3eaf47fcdf878a0c66a6727553b58ab3d1f4736b485399cff + type: rasterhash + + - algorithm: grass7:r.li.padsd + name: GRASS7 r.li.padsd + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 48f8a52703f6e9b168b15fca180bb774580c557484598d165ef697c0 + type: rasterhash + + - algorithm: grass7:r.li.patchdensity + name: GRASS7 r.li.patchdensity + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: d32d9875ff52e1ed69df306602c74ae4f0d5c40e16f620482d7341d6 + type: rasterhash + + - algorithm: grass7:r.li.patchnum + name: GRASS7 r.li.patchnum + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 234771688886677233dc56a3d7f1d6cafbc1f736cbb48e1251719b72 + type: rasterhash + + - algorithm: grass7:r.li.pielou + name: GRASS7 r.li.pielou + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: b10a953914ed37ee7e4c1e14f796621d7656f55f7b7185d2e6ae0184 + type: rasterhash + + - algorithm: grass7:r.li.renyi + name: GRASS7 r.li.renyi + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + alpha: '3' + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 83f86ca9d7c029ef9e62e0c8804ae60059fccb2bbf5c96bd4c2704e1 + type: rasterhash + + - algorithm: grass7:r.li.richness + name: GRASS7 r.li.richness + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 010f0d0a68fb14a4cb064b9890b5bf7e0921f3faa91276419cb037c5 + type: rasterhash + + - algorithm: grass7:r.li.shannon + name: GRASS7 r.li.shannon + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 144094fba63106b776cb78fd9fac418988044b55f7d19db1b45876cd + type: rasterhash + + - algorithm: grass7:r.li.shape + name: GRASS7 r.li.shape + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: b703521aff3a9ea75612b174912061173a761f1ebef58a3523d2eaa9 + type: rasterhash + + - algorithm: grass7:r.li.simpson + name: GRASS7 r.li.simpson + params: + GRASS_REGION_CELLSIZE_PARAMETER: 0.0 + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfigmoving + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + hash: 6f1f3af79c1baaebdd795f569bcb1dcf43b8c025896c5425d539422e + type: rasterhash + + - algorithm: grass7:r.li.cwed.ascii + name: GRASS7 r.li.cwed.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + input: + name: custom/grass7/raster_6class.tif + type: raster + path: + name: custom/grass7/weighted.csv + type: file + results: + output: + name: expected/grass7/r.li.cwed.ascii.txt + type: file + + - algorithm: grass7:r.li.dominance.ascii + name: GRASS7 r.li.dominance.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.dominance.ascii.txt + type: file + + - algorithm: grass7:r.li.edgedensity.ascii + name: GRASS7 r.li.edgedensity.ascii + params: + -b: false + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + patch_type: '3' + results: + output: + name: expected/grass7/r.li.edgedensity.ascii.txt + type: file + + - algorithm: grass7:r.li.mpa.ascii + name: GRASS7 r.li.mpa.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.mpa.ascii.txt + type: file + + - algorithm: grass7:r.li.mps.ascii + name: GRASS7 r.li.mps.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.mps.ascii.txt + type: file + + - algorithm: grass7:r.li.padcv.ascii + name: GRASS7 r.li.padcv.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.padcv.ascii.txt + type: file + + - algorithm: grass7:r.li.padrange.ascii + name: GRASS7 r.li.padrange.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.padrange.ascii.txt + type: file + + - algorithm: grass7:r.li.padsd.ascii + name: GRASS7 r.li.padsd.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.padsd.ascii.txt + type: file + + - algorithm: grass7:r.li.patchdensity.ascii + name: GRASS7 r.li.patchdensity.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.patchdensity.ascii.txt + type: file + + - algorithm: grass7:r.li.patchnum.ascii + name: GRASS7 r.li.patchnum.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.patchnum.ascii.txt + type: file + + - algorithm: grass7:r.li.pielou.ascii + name: GRASS7 r.li.pielou.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.pielou.ascii.txt + type: file + + - algorithm: grass7:r.li.renyi.ascii + name: GRASS7 r.li.renyi.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + alpha: '3' + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.renyi.ascii.txt + type: file + + - algorithm: grass7:r.li.richness.ascii + name: GRASS7 r.li.richness.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.richness.ascii.txt + type: file + + - algorithm: grass7:r.li.shannon.ascii + name: GRASS7 r.li.shannon.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.shannon.ascii.txt + type: file + + - algorithm: grass7:r.li.shape.ascii + name: GRASS7 r.li.shape.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.shape.ascii.txt + type: file + + - algorithm: grass7:r.li.simpson.ascii + name: GRASS7 r.li.simpson.ascii + params: + GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 + config: + name: custom/grass7/rliconfig + type: file + config_txt: '' + input: + name: custom/grass7/raster_6class.tif + type: raster + results: + output: + name: expected/grass7/r.li.simpson.ascii.txt + type: file + +# Differences between osgeo4travis and Debian Stretch +# - algorithm: grass7:r.watershed +# name: GRASS7 r.watershed +# params: +# '-4': false +# -a: false +# -b: false +# -m: false +# -s: false +# GRASS_REGION_CELLSIZE_PARAMETER: 0.0 +# GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 +# convergence: 5 +# elevation: +# name: custom/grass7/float_raster.tif +# type: raster +# max_slope_length: 50 +# memory: 300 +# threshold: 1 +# results: +# accumulation: +# hash: 1ecbadff7aee4101be1c3626a7c77ebca3ae598d33672807f4a6fc34 +# type: rasterhash +# basin: +# hash: d4691e1bff8bf352508ecbdf7c694208d07ef83bb13b0768418f322c +# type: rasterhash +# drainage: +# hash: 3e97f781cbca662823a53e7a6cb10e1edde2f8d0e4d64c28a62db2c0 +# type: rasterhash +# half_basin: +# hash: 431a0c8359b7662169ef8a9adf469da47a282a70981de5bee24e3528 +# type: rasterhash +# length_slope: +# hash: 69b5b31ac93a25f01b85e4f7867e5b8720183732d29d50c24204a7b9 +# type: rasterhash +# slope_steepness: +# hash: cafb759a5701e78928a43d87e58e552f9186358b1de40c375047f81e +# type: rasterhash +# stream: +# hash: c6e7b081057d120e47e6d10f5abd05e47b42284c7d7974e64c71e053 +# type: rasterhash +# tci: +# hash: 6b213bddf1223f392c01ab26e84485c01d652dfcae40aecd186f3295 +# type: rasterhash + +# Differences between osgeo4travis and Debian Stretch +#- algorithm: grass7:r.transect +# name: GRASS7 r.transect +# params: +# -g: false +# GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 +# line: 351710,6688812,90,1000 +# map: +# name: custom/grass7/float_raster.tif +# type: raster +# null_value: '*' +# results: +# output: +# name: expected/grass7/r.transect.txt +# type: file + +# Differences between osgeo4travis and Debian Stretch +# - algorithm: grass7:r.stream.extract +# name: GRASS7 r.stream.extract +# params: +# GRASS_OUTPUT_TYPE_PARAMETER: '0' +# GRASS_REGION_CELLSIZE_PARAMETER: 0.0 +# GRASS_REGION_PARAMETER: 344500.0,358400.0,6682800.0,6693700.0 +# d8cut: 0 +# elevation: +# name: custom/grass7/float_raster.tif +# type: raster +# mexp: 0 +# stream_length: 0 +# threshold: 1 +# results: +# direction: +# hash: 8499f6e5f81d0b79a0483481b467263246e2c97f1ef652df90e773e2 +# type: rasterhash +# stream_raster: +# hash: 916672ce0c35295100bcdc56bc60e26841b9cbb384924ae4f54648a8 +# type: rasterhash