[QGIS-Developer] Script vs plugin conundrum

Richard Burkmar rich.burkmar at gmail.com
Thu Oct 25 03:12:38 PDT 2018


Greetings!

I can use the QGIS 3 vector dissolve function in the script console like
this:

import processing
processing.run('qgis:dissolve', {'INPUT' : 'c:/temp/input.shp', 'OUTPUT' :
'c:/temp/dissolved.shp'})

But I don't understand how to replicate this from within a version 3
plugin. My basic problem is that I can't locate the 'processing' object -
what do I import? Or do I have to go about this in a completely different
way from within a plugin?

Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181025/0efba343/attachment.html>


More information about the QGIS-Developer mailing list