[QGIS-Developer] multipartToSingleParts via code

Stefano Masera stefano.masera at arpa.piemonte.it
Tue Jun 13 00:49:27 PDT 2017


Hi Nyali, 
in a few words I want to do a multipartToSingleParts (for a VectorLayer) via code without using the processing module. 
Thanks! 

Stefano 




***************************** 
Stefano Masera 
Arpa Piemonte 
Via Pio VII, 9 - 10135 Torino 
www.arpa.piemonte.it 


----- Messaggio originale -----

Da: "Nyall Dawson" <nyall.dawson at gmail.com> 
A: "Stefano Masera" <stefano.masera at arpa.piemonte.it> 
Cc: "qgis-developer" <qgis-developer at lists.osgeo.org> 
Inviato: Lunedì, 12 giugno 2017 23:33:07 
Oggetto: Re: [QGIS-Developer] multipartToSingleParts via code 

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 

-- 
Questo messaggio e' stato analizzato ed e' risultato non infetto. 
This message was scanned and is believed to be clean. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170613/41ef383d/attachment-0001.html>


More information about the QGIS-Developer mailing list