-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEST: add a test for otb conversion application (simpler than bandmath)
(cherry picked from commit 7b22f5d)
- Loading branch information
1 parent
47c1daa
commit 24e92b4
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.28 KB
python/plugins/processing/tests/testdata/expected/otb/raster_convert.tif
Binary file not shown.
24 changes: 13 additions & 11 deletions
24
python/plugins/processing/tests/testdata/otb_algorithm_tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# See ../README.md for a description of the file format | ||
|
||
tests: | ||
- algorithm: otb:bandmath | ||
name: Test (otb:bandmath) | ||
|
||
- algorithm: otb:imageconversion | ||
name: Test (otb:imageconversion) | ||
params: | ||
!!python/unicode '-exp': im1b1==826?255:0 | ||
!!python/unicode '-il': | ||
params: | ||
- name: raster.tif | ||
type: raster | ||
type: multi | ||
!!python/unicode '-ram': 128 | ||
-hcp.high: 2 | ||
-hcp.low: 2 | ||
-in: | ||
name: raster.tif | ||
type: raster | ||
-ram: 128 | ||
-type: '1' | ||
-type.linear.gamma: 1 | ||
results: | ||
!!python/unicode '-out': | ||
hash: a8acb8da3cf40a156fe26f815588a7cbf8f3c8f6b3c226968b1eab1e | ||
-out: | ||
hash: b3657f4d848b64f688db41638ea6d86d9de1d0a169bc1bafef8af82a | ||
type: rasterhash | ||
|