Skip to content
Permalink
Browse files

Added test for 'gdal_rasterize -init 0'

(cherry picked from commit 2488f71)
  • Loading branch information
suricactus authored and nyalldawson committed Jan 18, 2019
1 parent 97dcdc1 commit 1639c74515d074c511f506d5df9595e29c3d3345
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 1639c74

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