Skip to content
Permalink
Browse files

[processing] support non-ogr layers in merge vector layers alg

(cherry picked from commit e338a90)
  • Loading branch information
nirvn authored and alexbruy committed Jan 24, 2017
1 parent e648e21 commit 9888b45bbe4b5a967ca49c28aadd2a2892b4d997
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/qgis/Merge.py
@@ -52,13 +52,12 @@ def defineCharacteristics(self):

def processAlgorithm(self, progress):
inLayers = self.getParameterValue(self.LAYERS)
paths = inLayers.split(';')

layers = []
fields = QgsFields()
totalFeatureCount = 0
for x in xrange(0, len(paths)):
layer = QgsVectorLayer(paths[x], unicode(x), 'ogr')
for layerSource in inLayers.split(';'):
layer = dataobjects.getObjectFromUri(layerSource)

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

0 comments on commit 9888b45

Please sign in to comment.
You can’t perform that action at this time.