Skip to content
Permalink
Browse files

Revert crs.ImportFromProj4(unicode(...)) to crs.ImportFromProj4(str(.…

…..))
  • Loading branch information
arnaud-morvan committed Oct 20, 2015
1 parent c45fc09 commit 3bc11b194734c1f92360369431d0cf0051c28cae
@@ -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 3bc11b1

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