Skip to content

Commit e338a90

Browse files
committedDec 20, 2016
[processing] support non-ogr layers in merge vector layers alg
1 parent 5e061b1 commit e338a90

File tree

1 file changed

+2
-3
lines changed
  • python/plugins/processing/algs/qgis

1 file changed

+2
-3
lines changed
 

‎python/plugins/processing/algs/qgis/Merge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ def defineCharacteristics(self):
6161

6262
def processAlgorithm(self, progress):
6363
inLayers = self.getParameterValue(self.LAYERS)
64-
paths = inLayers.split(';')
6564

6665
layers = []
6766
fields = QgsFields()
6867
totalFeatureCount = 0
69-
for x in range(len(paths)):
70-
layer = QgsVectorLayer(paths[x], str(x), 'ogr')
68+
for layerSource in inLayers.split(';'):
69+
layer = dataobjects.getObjectFromUri(layerSource)
7170

7271
if (len(layers) > 0):
7372
if (layer.wkbType() != layers[0].wkbType()):

0 commit comments

Comments
 (0)
Please sign in to comment.