[QGIS-Developer] multipartToSingleParts via code
Nyall Dawson
nyall.dawson at gmail.com
Mon Jun 12 14:33:07 PDT 2017
On 13 June 2017 at 01:01, Stefano Masera
<stefano.masera at arpa.piemonte.it> wrote:
> Hi list,
> I want to use the 'multiPartToSinglePart' script via code for my plugin.
> I can use it importing processing like this:
>
> import processing
> processing.runalg("qgis:multiparttosingleparts", input, output)
>
> but I wan't to use it in a different way, like I already do with the
> 'dissolve' script:
>
> from qgis.analysis import *
> analyzer = QgsGeometryAnalyzer()
> analyzer.dissolve(input, output)
>
> (even if I could write:
> import processing
> processing.runalg("qgis:dissolve",input,output)
> )
>
> Is it possible?
Sorry, I don't understand exactly what it is you're wanting to do. Can
you clarify?
Nyall
More information about the QGIS-Developer
mailing list