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
  • Loading branch information
nirvn committed Dec 20, 2016
1 parent 5e061b1 commit e338a90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/algs/qgis/Merge.py
Expand Up @@ -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()):
Expand Down

0 comments on commit e338a90

Please sign in to comment.