mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[Processing] Fix raster tools
GDAL arguments need to be str since they are passed as unencoded const char*.
This commit is contained in:
parent
82c9a5ad3c
commit
2f411afe75
@ -107,7 +107,7 @@ class RasterWriter:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user