mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Merge pull request #2386 from arnaud-morvan/processing-fix-importfromproj4
Fix string type errors in processing algorithms
This commit is contained in:
commit
b99ef2c0bb
@ -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')
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user