Skip to content
Permalink
Browse files

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

  • Loading branch information
nirvn committed Dec 20, 2016
1 parent 5e061b1 commit e338a90c80dd8b58ed41cb932c8a166b3172db2a
Showing with 2 additions and 3 deletions.
  1. +2 −3 python/plugins/processing/algs/qgis/Merge.py
@@ -61,13 +61,12 @@ def defineCharacteristics(self):

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

layers = []
fields = QgsFields()
totalFeatureCount = 0
for x in range(len(paths)):
layer = QgsVectorLayer(paths[x], str(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 e338a90

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