Skip to content

Commit

Permalink
[processing] add test for color relief gdal
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt authored and m-kuhn committed Jan 25, 2017
1 parent ecf1f5a commit a49fc8a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
@@ -0,0 +1,5 @@
0 110 220 110
85 240 250 160
175 230 220 170
200 220 220 220
250 250 250 250
34 changes: 34 additions & 0 deletions python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml
Expand Up @@ -545,3 +545,37 @@ tests:
OUTPUT:
hash: f468bb08cbede2b606018a7a45a51cc221307a8421a11daefabeac12
type: rasterhash

- algorithm: gdal:colorrelief
name: Standard Color Relief
params:
BAND: 1
COLOR_TABLE:
name: custom/color_relief.txt
type: file
COMPUTE_EDGES: false
INPUT:
name: dem.tif
type: raster
MATCH_MODE: '0'
results:
OUTPUT:
hash: f714597fadc9cfc3f5263dc0e35f7c6ba285de238dce439e4988faac
type: rasterhash

- algorithm: gdal:colorrelief
name: Color Relief with edges
params:
BAND: 1
COLOR_TABLE:
name: custom/color_relief.txt
type: file
COMPUTE_EDGES: true
INPUT:
name: dem.tif
type: raster
MATCH_MODE: '0'
results:
OUTPUT:
hash: f714597fadc9cfc3f5263dc0e35f7c6ba285de238dce439e4988faac
type: rasterhash

0 comments on commit a49fc8a

Please sign in to comment.