File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
from osgeo import gdal
29
29
30
- from processing .algs .gdal .GdalAlgorithm import GdalAlgorithm
31
-
32
30
from processing .core .parameters import ParameterRaster
33
31
from processing .core .parameters import ParameterVector
34
32
from processing .core .parameters import ParameterBoolean
41
39
from processing .algs .gdal .OgrAlgorithm import OgrAlgorithm
42
40
from processing .algs .gdal .GdalUtils import GdalUtils
43
41
42
+ from processing .tools import dataobjects
43
+
44
44
45
- class ClipByMask (GdalAlgorithm , OgrAlgorithm ):
45
+ class ClipByMask (OgrAlgorithm ):
46
46
47
47
INPUT = 'INPUT'
48
48
OUTPUT = 'OUTPUT'
@@ -149,7 +149,7 @@ def getConsoleCommands(self):
149
149
150
150
arguments .append ('-cutline' )
151
151
arguments .append (ogrMask )
152
- if maskLayer .subsetString () != '' :
152
+ if maskLayer and maskLayer .subsetString () != '' :
153
153
arguments .append ('-cwhere' )
154
154
arguments .append (maskLayer .subsetString ())
155
155
You can’t perform that action at this time.
0 commit comments