[Qgis-user] Merging vectorlayers
Moussadji Bekale Dehn Randy
randy.bekale at irstea.fr
Thu Jun 27 07:29:16 PDT 2019
hi!!! how it is goin'?
I try to merge vector layers using pyQgis.
import processing as pr
layer=QgsProject.instance().mapLayers()
lay=[ly for ly in layer.values()]
pr.run("qgis:mergevectorlayers",lay,"output.shp")
Traceback (most recent call last):
File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python/plugins\processing\tools\general.py", line 105, in run
return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)
File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python/plugins\processing\core\Processing.py", line 135, in runAlgorithm
ok, msg = alg.checkParameterValues(parameters, context)
TypeError: QgsProcessingAlgorithm.checkParameterValues(): argument 1 has unexpected type 'list'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190627/474f79f2/attachment.html>
More information about the Qgis-user
mailing list