<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Ben and Nyall,<br></div><div>thanks for your answers.<br></div><div>I resolve the question with the Nyall's processing link and using a part of the code in that link.<br></div><div>It's a little bit difficult for me explain better what's happened because my plugin it's articulated (for my experience), and the multiparttosinglepart is a little part of the code.<br></div><div>You can see the actual version installing it from the official repository, the name is "opeNoise", but in the actual there isn't this problem because I didn't need to use multiparttosinglepart.<br></div><div>Now I'm workinkg to a develop of the plugin.<br></div><div>In any case now it's all ok, even if I didn't use processing algorithm in the code.<br></div><div><br></div><div>Thank you very much!<br></div><div><br></div><div>Bye <br></div><div>Stefano<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>Da: </b>"Ben Hur Pintor" <bnhr.dev@gmail.com><br><b>A: </b>"Nyall Dawson" <nyall.dawson@gmail.com><br><b>Cc: </b>"Stefano Masera" <stefano.masera@arpa.piemonte.it>, "qgis-developer" <qgis-developer@lists.osgeo.org><br><b>Inviato: </b>Martedì, 13 giugno 2017 5:24:38<br><b>Oggetto: </b>Re: [QGIS-Developer] multipartToSingleParts via code<br><div><br></div><div dir="ltr">Hi Stefano.<br><div><br></div>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.<div><br></div><div>Something like:</div><div><br></div><div>from qgis.xxx import *</div><div>xxx = YYY</div><div>xxx.multiparttosingleparts(input, output)</div><div><br></div><div>Have you tried looking at the API?<br></div><div><br></div><div>I haven't used the qgis processing algorithims in my Python code that way since they already work fine the way they do now. May I know why you'd like such a use case?</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Ben Hur</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 5:33 AM, Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank" data-mce-href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">On 13 June 2017 at 01:01, Stefano Masera<br> <span class=""><<a href="mailto:stefano.masera@arpa.piemonte.it" target="_blank" data-mce-href="mailto:stefano.masera@arpa.piemonte.it">stefano.masera@arpa.piemonte.it</a>> wrote:<br> > Hi list,<br> > I want to use the 'multiPartToSinglePart' script via code for my plugin.<br> > I can use it importing processing like this:<br> ><br> > import processing<br> > processing.runalg("qgis:multiparttosingleparts", input, output)<br> ><br> > but I wan't to use it in a different way, like I already do with the<br> > 'dissolve' script:<br> ><br> > from qgis.analysis import *<br> > analyzer = QgsGeometryAnalyzer()<br> > analyzer.dissolve(input, output)<br> ><br> > (even if I could write:<br> > import processing<br> > processing.runalg("qgis:dissolve",input,output)<br> > )<br> ><br> > Is it possible?<br> <br> </span>Sorry, I don't understand exactly what it is you're wanting to do. Can<br> you clarify?<br> <br> Nyall<br> _______________________________________________<br> QGIS-Developer mailing list<br> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" data-mce-href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" data-mce-href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" data-mce-href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br data-mce-bogus="1"></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>---</div><div><br><div><span data-mce-style="font-size: small;" style="font-size: small;"><b>Engr. Ben Hur S. Pintor</b><br></span></div><span data-mce-style="font-size: small;" style="font-size: small;"><i>Research Associate</i><br></span></div><span data-mce-style="font-size: small;" style="font-size: small;">Phil-LiDAR 2 Project 5: REMap<br></span></div><span data-mce-style="font-size: small;" style="font-size: small;">UP Training Center for Applied Geodesy and Photogrammetry<br></span></div><div><span data-mce-style="font-size: small;" style="font-size: small;"><i><br></i></span></div><div><span data-mce-style="font-size: small;" style="font-size: small;"><i>Juris Doctor<br></i></span></div><div><span data-mce-style="font-size: small;" style="font-size: small;">College of Law<br></span></div><div dir="ltr"><div><div><div><div><div><div><span data-mce-style="font-size: small;" style="font-size: small;"><span data-mce-style="color: #990000;" style="color: #990000;"><b>University of the Philippines Diliman</b></span></span></div><div><span data-mce-style="color: #000000;" style="color: #000000;"><span data-mce-style="font-size: small;" style="font-size: small;">Quezon City 1101, PHL</span></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div><br></div></div></body></html>