Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove duplicate condition
  • Loading branch information
alexbruy committed Apr 9, 2015
1 parent df9d5f4 commit 7097a50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/gdal/rasterize.py
Expand Up @@ -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':
Expand Down

0 comments on commit 7097a50

Please sign in to comment.