Skip to content
Permalink
Browse files

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

…proj4

Fix string type errors in processing algorithms
  • Loading branch information
m-kuhn committed Oct 20, 2015
2 parents c45fc09 + 3bc11b1 commit b99ef2c0bbacc4201d2c4a7961894924145b6e44
@@ -94,7 +94,7 @@ def processAlgorithm(self, progress):
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')
@@ -102,7 +102,7 @@ def processAlgorithm(self, progress):
rasterGeom = QgsGeometry.fromRect(rasterBBox)

crs = osr.SpatialReference()
crs.ImportFromProj4(unicode(layer.crs().toProj4()))
crs.ImportFromProj4(str(layer.crs().toProj4()))

if useGlobalExtent:
xMin = rasterBBox.xMinimum()

0 comments on commit b99ef2c

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