mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] support non-ogr layers in merge vector layers alg
This commit is contained in:
parent
5e061b1c63
commit
e338a90c80
@ -61,13 +61,12 @@ class Merge(GeoAlgorithm):
|
||||
|
||||
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()):
|
||||
|
Loading…
x
Reference in New Issue
Block a user