Skip to content
Permalink
Browse files

Added test for 'gdal_rasterize -init 0'

  • Loading branch information
suricactus authored and nyalldawson committed Jan 17, 2019
1 parent 36c821d commit 2488f71ddb8273d7f9ca61843d4ee6b3097cbffd
Showing with 10 additions and 0 deletions.
  1. +10 −0 python/plugins/processing/tests/GdalAlgorithmsTest.py
@@ -2012,6 +2012,16 @@ def testRasterize(self):
'-l polys2 -a id -ts 0.0 0.0 -a_nodata 9999.0 -ot Float32 -of JPEG ' +
source + ' ' +
outdir + '/check.jpg'])
# with "0" INIT value
self.assertEqual(
alg.getConsoleCommands({'INPUT': source,
'INIT': 0,
'FIELD': 'id',
'OUTPUT': outdir + '/check.jpg'}, context, feedback),
['gdal_rasterize',
'-l polys2 -a id -ts 0.0 0.0 -init 0.0 -ot Float32 -of JPEG ' +
source + ' ' +
outdir + '/check.jpg'])
# with "0" NODATA value
self.assertEqual(
alg.getConsoleCommands({'INPUT': source,

0 comments on commit 2488f71

Please sign in to comment.
You can’t perform that action at this time.