<div dir="ltr">Hi Stefano.<br><br>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">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">On 13 June 2017 at 01:01, Stefano Masera<br>
<span class=""><<a href="mailto:stefano.masera@arpa.piemonte.it">stefano.masera@arpa.piemonte.<wbr>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:<wbr>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:<wbr>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>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a 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">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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"><span><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="monospace, monospace"><div dir="ltr"><div><div>---</div><div><br><div><font size="2"><b>Engr. Ben Hur S. Pintor</b><br></font></div><font size="2"><i>Research Associate</i><br></font></div><font size="2">Phil-LiDAR 2 Project 5: REMap<br></font></div><font size="2">UP Training Center for Applied Geodesy and Photogrammetry<br></font></div><div><font size="2"><i><br></i></font></div><div><font size="2"><i>Juris Doctor<br></i></font></div><div><font size="2">College of Law<br></font></div><div dir="ltr"><div><div><div><div><div><div><font size="2"><font color="#990000"><b>University of the Philippines Diliman</b></font></font></div><div><font color="#000000"><font size="2">Quezon City 1101, PHL</font></font></div></div></div></div></div></div></div></font></div></div></div></div></div></div></div></span></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>