Skip to content

Commit

Permalink
[Processing] Fix raster tools
Browse files Browse the repository at this point in the history
GDAL arguments need to be str since they are passed as unencoded const
char*.
  • Loading branch information
m-kuhn committed Jan 28, 2016
1 parent 82c9a5a commit 2f411af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/raster.py
Expand Up @@ -107,7 +107,7 @@ def close(self):
driver = gdal.GetDriverByName(format)
dst_ds = driver.Create(self.fileName, self.nx, self.ny, 1,
gdal.GDT_Float32)
dst_ds.SetProjection(unicode(self.crs.toWkt()))
dst_ds.SetProjection(str(self.crs.toWkt()))
dst_ds.SetGeoTransform([self.minx, self.cellsize, 0,
self.maxy, self.cellsize, 0])
dst_ds.GetRasterBand(1).WriteArray(self.matrix)
Expand Down

0 comments on commit 2f411af

Please sign in to comment.