Skip to content

Commit

Permalink
Merge pull request #1737 from gioman/fix_gdal_rasterize
Browse files Browse the repository at this point in the history
fix gdal rasterize when using the -ts parameter
  • Loading branch information
alexbruy committed Dec 16, 2014
2 parents e7dcd48 + 8afbe83 commit 79e1236
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/rasterize.py
Expand Up @@ -86,6 +86,8 @@ def processAlgorithm(self, progress):
if dimType == 0:
# size in pixels
arguments.append('-ts')
arguments.append(str(self.getParameterValue(self.WIDTH)))
arguments.append(str(self.getParameterValue(self.HEIGHT)))
else:
# resolution in map units per pixel
arguments.append('-tr')
Expand Down

0 comments on commit 79e1236

Please sign in to comment.