Skip to content
Permalink
Browse files

remove duplicate condition

  • Loading branch information
alexbruy committed Apr 9, 2015
1 parent df9d5f4 commit 7097a5035eeceed6e00c9bf48aadda6b36e714cb
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/algs/gdal/rasterize.py
@@ -138,10 +138,11 @@ def processAlgorithm(self, progress):
arguments.append('-tr')
arguments.append(str(self.getParameterValue(self.WIDTH)))
arguments.append(str(self.getParameterValue(self.HEIGHT)))
if not writeOver:

if len(noData) > 0:
arguments.append('-a_nodata')
arguments.append(noData)

if (GdalUtils.getFormatShortNameFromFilename(out) == "GTiff") and (writeOver is False):
arguments.append("-co COMPRESS="+compress)
if compress == 'JPEG':

0 comments on commit 7097a50

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