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" <[email protected]> 
A: "Stefano Masera" <[email protected]> 
Cc: "qgis-developer" <[email protected]> 
Inviato: Lunedì, 12 giugno 2017 23:33:07 
Oggetto: Re: [QGIS-Developer] multipartToSingleParts via code 

On 13 June 2017 at 01:01, Stefano Masera 
<[email protected]> 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. 


_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to