Skip to content
Permalink
Browse files

[Processing] Fix raster tools

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 2f411afe752a3e2fa70a85d44b3501d912cdf335
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/raster.py
@@ -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)

0 comments on commit 2f411af

Please sign in to comment.
You can’t perform that action at this time.