Skip to content

Commit

Permalink
Revert crs.ImportFromProj4(unicode(...)) to crs.ImportFromProj4(str(.…
Browse files Browse the repository at this point in the history
…..))
  • Loading branch information
arnaud-morvan committed Oct 20, 2015
1 parent c45fc09 commit 3bc11b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/HypsometricCurves.py
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/ZonalStatistics.py
Expand Up @@ -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()
Expand Down

0 comments on commit 3bc11b1

Please sign in to comment.