fix gdal rasterize when using the -ts parameter

This commit is contained in:
Giovanni Manghi 2014-12-15 18:20:17 +00:00
parent 138d836b0c
commit 8afbe83c74

View File

@ -86,6 +86,8 @@ class rasterize(GdalAlgorithm):
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')