We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e648e21 commit 9888b45Copy full SHA for 9888b45
python/plugins/processing/algs/qgis/Merge.py
@@ -52,13 +52,12 @@ def defineCharacteristics(self):
52
53
def processAlgorithm(self, progress):
54
inLayers = self.getParameterValue(self.LAYERS)
55
- paths = inLayers.split(';')
56
57
layers = []
58
fields = QgsFields()
59
totalFeatureCount = 0
60
- for x in xrange(0, len(paths)):
61
- layer = QgsVectorLayer(paths[x], unicode(x), 'ogr')
+ for layerSource in inLayers.split(';'):
+ layer = dataobjects.getObjectFromUri(layerSource)
62
63
if (len(layers) > 0):
64
if (layer.wkbType() != layers[0].wkbType()):
0 commit comments