<div dir="ltr">Hi Silver,<br><div><div class="gmail_extra"><br><div class="gmail_quote">2013/5/21 Silver Ashen <span dir="ltr"><<a href="mailto:silver.ashen@gmail.com" target="_blank">silver.ashen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Again,<br><br></div>I tried to use the "Script Runner" plugin. Here enclosed the script that I loaded.<br>
<br></div>Nothing happening, do you know what I did wrong ?<br></div></blockquote><div><br>This script [0] should works for both Python Console and Script runner [1].<br>For Python Console, saves it as clipper.py and <br>
runs it with Run Script command, then type in console:<br><br>>>> import clipper<br></div><div>>>> clipper.run_script(iface)<br><br></div><div><span id="result_box" class="" lang="en"><span class="">the same</span> <span class="">result is obtained</span></span> executing the code <br>
with the 'Enter selected' command and then typing:<br><br></div><div>>>> run_script(iface)<br></div><div><br></div><div>not tested on Script Runner plugin, but I guess it should work anyway :-))<br></div>
<div><span id="result_box" class="" lang="en"><span class="">You</span> <span class="">also</span> <span class="">could consider to use</span> <span class="">SEXTANTE</span> <span class="">to do this kind</span> <span class="">of things!<br>
</span></span></div><div><br></div><div>Hope this helps.<br><br></div><div>Regards,<br><br></div><div>-SL<br><br>[0] - <a href="http://codepad.org/AlDzdVmi">http://codepad.org/AlDzdVmi</a><br>[1] - <a href="http://spatialgalaxy.net/2013/03/18/new-version-of-the-qgis-script-runner-plugin/">http://spatialgalaxy.net/2013/03/18/new-version-of-the-qgis-script-runner-plugin/</a><br>
</div><div><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div><div class=""><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/5/21 Silver Ashen <span dir="ltr"><<a href="mailto:silver.ashen@gmail.com" target="_blank">silver.ashen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><div><div><div><div>Hi,<br></div>Thanks for the tip, I didn't know the plugin.<br><br></div>Do you know where I can find some examples for "warning when the process is finished" and loading result in the map canvas ?<br>


</div>I'm still a beginner in both python and python console. <br></div>I think that a few examples, a few "models" could help to save time searching in the ocean of pyqgis :).<br><br></div>Bye<br></div><div>

<div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/5/21 Salvatore Larosa <span dir="ltr"><<a href="mailto:lrssvtml@gmail.com" target="_blank">lrssvtml@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div dir="ltr"><div><div><div>Hi Silver,<br></div>if you are using the development version of QGIS <br>you can run the script from Python Console by using 'Run Script' or 'Enter selected' command<br></div>


<div>
in the file editor,<span lang="en"><span> perhaps adding</span> <span>some</span> statement <span>to warn when</span> <span>the process is finished</span></span> and to load<br>
</div><div>the result into the map canvas.<br></div><div><br></div><div>Alternately you can use the Script Runner plugin.</div><div><br></div><div>Regards,<br><br></div><div>-SL<br></div><div><br></div></div></div><div class="gmail_extra">



<br><br><div class="gmail_quote">2013/5/21 Silver Ashen <span dir="ltr"><<a href="mailto:silver.ashen@gmail.com" target="_blank">silver.ashen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div><div>
<div dir="ltr"><div><div>Hello everybody,<br><br></div>I'm new on the mailing list. I'm a beginner with Python and Python Console in QGIS.<br><br></div><div>I have a lot of shapefiles that I want to clip with one shapefile. Instead of doing it manually, I want to try to use a script to do it.<br>




<br></div><div>By seeking on the mailing list archives, I found this : <a href="http://osdir.com/ml/qgis-user-gis/2011-05/msg00122.html" target="_blank">http://osdir.com/ml/qgis-user-gis/2011-05/msg00122.html</a><br><br>



</div><div>This is very useful but I definitely do mistakes in filling the different part of the code. Plus, I don't understand every parameters (pref, suf ??).<br>
<br></div><div>Do you know where I can find some accurate documentation on clip_shp_to_shp with examples ?<br></div><div>Where is the description of the Glob module ?<br><br></div><div>Thanks for your support.<br><br></div>




<div>Bye.<br></div></div>
<br></div></div><div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></div></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>


twitter: @lrssvt<br>skype: s.larosa<br>
IRC: lrssvt on freenode<br>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>twitter: @lrssvt<br>
skype: s.larosa<br>IRC: lrssvt on freenode<br>
</div></div></div>