mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
get rid of multiple inheritance, fix missed import
This commit is contained in:
parent
fe2bb2f09f
commit
cf02a71bb0
@ -27,8 +27,6 @@ __revision__ = '$Format:%H$'
|
|||||||
|
|
||||||
from osgeo import gdal
|
from osgeo import gdal
|
||||||
|
|
||||||
from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm
|
|
||||||
|
|
||||||
from processing.core.parameters import ParameterRaster
|
from processing.core.parameters import ParameterRaster
|
||||||
from processing.core.parameters import ParameterVector
|
from processing.core.parameters import ParameterVector
|
||||||
from processing.core.parameters import ParameterBoolean
|
from processing.core.parameters import ParameterBoolean
|
||||||
@ -41,8 +39,10 @@ from processing.core.outputs import OutputRaster
|
|||||||
from processing.algs.gdal.OgrAlgorithm import OgrAlgorithm
|
from processing.algs.gdal.OgrAlgorithm import OgrAlgorithm
|
||||||
from processing.algs.gdal.GdalUtils import GdalUtils
|
from processing.algs.gdal.GdalUtils import GdalUtils
|
||||||
|
|
||||||
|
from processing.tools import dataobjects
|
||||||
|
|
||||||
class ClipByMask(GdalAlgorithm, OgrAlgorithm):
|
|
||||||
|
class ClipByMask(OgrAlgorithm):
|
||||||
|
|
||||||
INPUT = 'INPUT'
|
INPUT = 'INPUT'
|
||||||
OUTPUT = 'OUTPUT'
|
OUTPUT = 'OUTPUT'
|
||||||
@ -149,7 +149,7 @@ class ClipByMask(GdalAlgorithm, OgrAlgorithm):
|
|||||||
|
|
||||||
arguments.append('-cutline')
|
arguments.append('-cutline')
|
||||||
arguments.append(ogrMask)
|
arguments.append(ogrMask)
|
||||||
if maskLayer.subsetString() != '':
|
if maskLayer and maskLayer.subsetString() != '':
|
||||||
arguments.append('-cwhere')
|
arguments.append('-cwhere')
|
||||||
arguments.append(maskLayer.subsetString())
|
arguments.append(maskLayer.subsetString())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user