Skip to content

Commit a904006

Browse files
committed
remove duplicate condition
1 parent 612f57d commit a904006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/processing/algs/gdal/rasterize.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ def processAlgorithm(self, progress):
138138
arguments.append('-tr')
139139
arguments.append(str(self.getParameterValue(self.WIDTH)))
140140
arguments.append(str(self.getParameterValue(self.HEIGHT)))
141-
if not writeOver:
141+
142142
if len(noData) > 0:
143143
arguments.append('-a_nodata')
144144
arguments.append(noData)
145+
145146
if (GdalUtils.getFormatShortNameFromFilename(out) == "GTiff") and (writeOver is False):
146147
arguments.append("-co COMPRESS="+compress)
147148
if compress == 'JPEG':

0 commit comments

Comments
 (0)