We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db17513 commit e62a7faCopy full SHA for e62a7fa
python/plugins/processing/algs/gdal/ogr2ogrclip.py
@@ -58,7 +58,7 @@ def processAlgorithm(self, progress):
58
inLayer = self.getParameterValue(self.INPUT_LAYER)
59
ogrLayer = self.ogrConnectionString(inLayer)[1:-1]
60
clipLayer = self.getParameterValue(self.CLIP_LAYER)
61
- ogrClipLayer = self.ogrConnectionString(clipLayer)
+ ogrClipLayer = self.ogrConnectionString(clipLayer)[1:-1]
62
63
output = self.getOutputFromName(self.OUTPUT_LAYER)
64
outFile = output.value
@@ -69,6 +69,8 @@ def processAlgorithm(self, progress):
69
arguments = []
70
arguments.append('-clipsrc')
71
arguments.append(ogrClipLayer)
72
+ arguments.append("-clipsrclayer")
73
+ arguments.append(self.ogrLayerName(clipLayer))
74
if len(options) > 0:
75
arguments.append(options)
76
0 commit comments