<div dir="ltr">Hi!<div style>Still.. That script has no relation to QGIS and there is no use to execute it in QGIS .. </div><div style>That script is a so called "standalone" script that uses the GDAL Binaries (ogr2ogr)</div>
<div style>to execute that script you must have python and GDAL installed and in your PATH .. </div><div style><br></div><div style>and no .. you dont neet to give anything on the commandline as parameters </div><div style>
<br></div><div style>the </div><div style><span style="color:rgb(0,0,0);font-family:Verdana,Georgia,serif;font-size:14px">clip_shp_to_shp(directory, shpclip)</span><br></div><div style><span style="color:rgb(0,0,0);font-family:Verdana,Georgia,serif;font-size:14px">in the last line is calling the clip_shp_to_shp function with 2 parameters - which are set inside the script before ..</span></div>
<div style><span style="color:rgb(0,0,0);font-family:Verdana,Georgia,serif;font-size:14px">the 2 "missing parameters" are optional as the have default values in the function definition</span></div><div style><span style="color:rgb(0,0,0);font-family:Verdana,Georgia,serif;font-size:14px">(</span><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">def clip_shp_to_shp(directory, shpclippath, pref="", suf="_clip"):)</span></font></div>
<div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px"><br></span></font></div><div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">Before we dig deeper into it .. Which Operating System are you using?</span></font></div>
<div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">And .. you should read about installing and using python on your operating system ..</span></font></div><div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px"><br>
</span></font></div><div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">hope this helps</span></font></div><div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">kind regards</span></font></div>
<div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px">Werner</span></font></div><div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px"><br></span></font></div>
<div style><font color="#000000" face="Verdana, Georgia, serif"><span style="font-size:14px"><br></span></font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 12:59 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><div><div>Thank you Werner Macho,<br><br></div>My questions will be a little bit silly but the world of all those library and module and languages, and all that stuff is still very dark to me.<br>
<br>
</div>When you say that I have to copy the script in the shape directory, this means that I copy the text in Python language with notepad++ and save it in the good directory ? But  then, how do I execute it in QGIS ? From which console ?<br>

<br></div>Is the shpclip that you mention the same as shpclippath which is the second parameter of clip_shp_to_shp ? Am I not forgetting to specify the directory to ?<br><br></div><div>Concerning ogr2ogr, after a quick search in my windows explorer, I saw that I have ogr2ogr.py, .php, .pyc, .exe.<br>

<br></div><div>Is it enough to work ?<br><br></div>Thanks again.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br></div></div></div></blockquote></div></div></div>