Skip to content

Commit 8bd0dd5

Browse files
committed
[processing] added tests for raster calculator
Conflicts: python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml
1 parent a7f9018 commit 8bd0dd5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,3 +1824,33 @@ tests:
18241824
- 'Minimum value: 03:29:40'
18251825
- 'Maximum value: 15:29:22'
18261826
- 'NULL \(missing\) values: 1'
1827+
1828+
- algorithm: qgis:rastercalculator
1829+
name: Raster Calculator with cellsize
1830+
params:
1831+
LAYERS:
1832+
params:
1833+
- name: dem.tif
1834+
type: raster
1835+
type: multi
1836+
CELLSIZE: 0.001
1837+
EXPRESSION: dem@1
1838+
results:
1839+
OUTPUT:
1840+
hash: ef97a22ee16e0e28bbdc0341449777b1527e37febc3c4339b2c057c9
1841+
type: rasterhash
1842+
1843+
- algorithm: qgis:rastercalculator
1844+
name: Raster Calculator
1845+
params:
1846+
LAYERS:
1847+
params:
1848+
- name: dem.tif
1849+
type: raster
1850+
type: multi
1851+
CELLSIZE: 0.0
1852+
EXPRESSION: dem@1 * 2
1853+
results:
1854+
OUTPUT:
1855+
hash: fe6e018be13c5a3c17f3f4d0f0dc7686c628cb440b74c4642aa0c939
1856+
type: rasterhash

0 commit comments

Comments
 (0)