Skip to content

Commit

Permalink
remove duplicate condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 19, 2015
1 parent 612f57d commit a904006
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 a904006

Please sign in to comment.