<div dir="ltr">Hi Silver!<div><br></div><div style>Beside the fact that your script is not related to QGIS .. </div><div style>the script is to be copied within the shapefiles in the directory and to be called from there.</div>
<div style>The only thing you need to set is </div><div style>shpclip = "/home/thomas/git/python_scripts/clipping_area.shp"<br></div><div style>thats the path to your shape that you take for clipping ..</div><div style>
<br></div><div style>everything else should run out of the box .. </div><div style>the created shapefiles will hae a suffix _clip with their name ..</div><div style><br></div><div style>Or i missunderstood you and you wanted to try to program it for the QGIS Python Console .. </div>
<div style><br></div><div style>kind regards</div><div style>Werner</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 12:29 PM, Silver Ashen <span dir="ltr"><<a href="mailto:silver.ashen@gmail.com" target="_blank">silver.ashen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">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></blockquote></div><br></div>