Skip to content

Commit 2488f71

Browse files
suricactusnyalldawson
authored andcommittedJan 17, 2019
Added test for 'gdal_rasterize -init 0'
1 parent 36c821d commit 2488f71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎python/plugins/processing/tests/GdalAlgorithmsTest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,6 +2012,16 @@ def testRasterize(self):
20122012
'-l polys2 -a id -ts 0.0 0.0 -a_nodata 9999.0 -ot Float32 -of JPEG ' +
20132013
source + ' ' +
20142014
outdir + '/check.jpg'])
2015+
# with "0" INIT value
2016+
self.assertEqual(
2017+
alg.getConsoleCommands({'INPUT': source,
2018+
'INIT': 0,
2019+
'FIELD': 'id',
2020+
'OUTPUT': outdir + '/check.jpg'}, context, feedback),
2021+
['gdal_rasterize',
2022+
'-l polys2 -a id -ts 0.0 0.0 -init 0.0 -ot Float32 -of JPEG ' +
2023+
source + ' ' +
2024+
outdir + '/check.jpg'])
20152025
# with "0" NODATA value
20162026
self.assertEqual(
20172027
alg.getConsoleCommands({'INPUT': source,

0 commit comments

Comments
 (0)
Please sign in to comment.