Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-14 Thread Stefano Masera
;qgis-developer" Inviato: Martedì, 13 giugno 2017 5:24:38 Oggetto: Re: [QGIS-Developer] multipartToSingleParts via code Hi Stefano. Correct me if I'm wrong but my understanding is that you want to be able to call "multiparttosingleparts" in his code the same way you call dis

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Ben Hur Pintor
gt; Thank you very much. > > Stefano > > > -- > *Da: *"Nyall Dawson" > *A: *"Stefano Masera" > *Cc: *"qgis-developer" > *Inviato: *Martedì, 13 giugno 2017 10:20:31 > *Oggetto: *Re: [QGIS-Developer] multipartToSin

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Stefano Masera
;Nyall Dawson" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Martedì, 13 giugno 2017 10:20:31 Oggetto: Re: [QGIS-Developer] multipartToSingleParts via code On 13 June 2017 at 17:49, Stefano Masera wrote: > Hi Nyali, > in a few words I want to do a mu

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Nyall Dawson
On 13 June 2017 at 17:49, Stefano Masera wrote: > Hi Nyali, > in a few words I want to do a multipartToSingleParts (for a VectorLayer) via > code without using the processing module. Any particular reason why? In any case, I'd suggest copying the code used by processing: https://github.com/qgis/

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-13 Thread Stefano Masera
- Da: "Nyall Dawson" A: "Stefano Masera" Cc: "qgis-developer" Inviato: Lunedì, 12 giugno 2017 23:33:07 Oggetto: Re: [QGIS-Developer] multipartToSingleParts via code On 13 June 2017 at 01:01, Stefano Masera wrote: > Hi list, > I want to use th

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-12 Thread Ben Hur Pintor
Hi Stefano. Correct me if I'm wrong but my understanding is that you want to be able to call "multiparttosingleparts" in his code the same way you call dissolve. Something like: from qgis.xxx import * xxx = YYY xxx.multiparttosingleparts(input, output) Have you tried looking at the API? I have

Re: [QGIS-Developer] multipartToSingleParts via code

2017-06-12 Thread Nyall Dawson
On 13 June 2017 at 01:01, Stefano Masera 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

[QGIS-Developer] multipartToSingleParts via code

2017-06-12 Thread Stefano Masera
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' sc