Merge pull request #2386 from arnaud-morvan/processing-fix-importfromproj4

Fix string type errors in processing algorithms
This commit is contained in:
Matthias Kuhn 2015-10-20 17:34:56 +02:00
commit b99ef2c0bb
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class HypsometricCurves(GeoAlgorithm):
rasterGeom = QgsGeometry.fromRect(rasterBBox)
crs = osr.SpatialReference()
crs.ImportFromProj4(unicode(layer.crs().toProj4()))
crs.ImportFromProj4(str(layer.crs().toProj4()))
memVectorDriver = ogr.GetDriverByName('Memory')
memRasterDriver = gdal.GetDriverByName('MEM')

View File

@ -102,7 +102,7 @@ class ZonalStatistics(GeoAlgorithm):
rasterGeom = QgsGeometry.fromRect(rasterBBox)
crs = osr.SpatialReference()
crs.ImportFromProj4(unicode(layer.crs().toProj4()))
crs.ImportFromProj4(str(layer.crs().toProj4()))
if useGlobalExtent:
xMin = rasterBBox.xMinimum()