File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def processAlgorithm(self, progress):
58
58
inLayer = self .getParameterValue (self .INPUT_LAYER )
59
59
ogrLayer = self .ogrConnectionString (inLayer )[1 :- 1 ]
60
60
clipLayer = self .getParameterValue (self .CLIP_LAYER )
61
- ogrClipLayer = self .ogrConnectionString (clipLayer )
61
+ ogrClipLayer = self .ogrConnectionString (clipLayer )[ 1 : - 1 ]
62
62
63
63
output = self .getOutputFromName (self .OUTPUT_LAYER )
64
64
outFile = output .value
@@ -69,6 +69,8 @@ def processAlgorithm(self, progress):
69
69
arguments = []
70
70
arguments .append ('-clipsrc' )
71
71
arguments .append (ogrClipLayer )
72
+ arguments .append ("-clipsrclayer" )
73
+ arguments .append (self .ogrLayerName (clipLayer ))
72
74
if len (options ) > 0 :
73
75
arguments .append (options )
74
76
You can’t perform that action at this time.
0 commit comments