Skip to content

Commit

Permalink
[processing] support non-ogr layers in merge vector layers alg
Browse files Browse the repository at this point in the history
(cherry picked from commit e338a90)
  • Loading branch information
nirvn authored and alexbruy committed Jan 24, 2017
1 parent e648e21 commit 9888b45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/algs/qgis/Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down

0 comments on commit 9888b45

Please sign in to comment.