Hi Silver, 2013/5/21 Silver Ashen <silver.as...@gmail.com>
> Again, > > I tried to use the "Script Runner" plugin. Here enclosed the script that I > loaded. > > Nothing happening, do you know what I did wrong ? > This script [0] should works for both Python Console and Script runner [1]. For Python Console, saves it as clipper.py and runs it with Run Script command, then type in console: >>> import clipper >>> clipper.run_script(iface) the same result is obtained executing the code with the 'Enter selected' command and then typing: >>> run_script(iface) not tested on Script Runner plugin, but I guess it should work anyway :-)) You also could consider to use SEXTANTE to do this kind of things! Hope this helps. Regards, -SL [0] - http://codepad.org/AlDzdVmi [1] - http://spatialgalaxy.net/2013/03/18/new-version-of-the-qgis-script-runner-plugin/ > > > 2013/5/21 Silver Ashen <silver.as...@gmail.com> > >> Hi, >> Thanks for the tip, I didn't know the plugin. >> >> Do you know where I can find some examples for "warning when the process >> is finished" and loading result in the map canvas ? >> I'm still a beginner in both python and python console. >> I think that a few examples, a few "models" could help to save time >> searching in the ocean of pyqgis :). >> >> Bye >> >> >> 2013/5/21 Salvatore Larosa <lrssv...@gmail.com> >> >>> Hi Silver, >>> if you are using the development version of QGIS >>> you can run the script from Python Console by using 'Run Script' or >>> 'Enter selected' command >>> in the file editor, perhaps adding some statement to warn when the >>> process is finished and to load >>> the result into the map canvas. >>> >>> Alternately you can use the Script Runner plugin. >>> >>> Regards, >>> >>> -SL >>> >>> >>> >>> 2013/5/21 Silver Ashen <silver.as...@gmail.com> >>> >>>> Hello everybody, >>>> >>>> I'm new on the mailing list. I'm a beginner with Python and Python >>>> Console in QGIS. >>>> >>>> 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. >>>> >>>> By seeking on the mailing list archives, I found this : >>>> http://osdir.com/ml/qgis-user-gis/2011-05/msg00122.html >>>> >>>> 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 ??). >>>> >>>> Do you know where I can find some accurate documentation on >>>> clip_shp_to_shp with examples ? >>>> Where is the description of the Glob module ? >>>> >>>> Thanks for your support. >>>> >>>> Bye. >>>> >>>> _______________________________________________ >>>> Qgis-user mailing list >>>> Qgis-user@lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/qgis-user >>>> >>>> >>> >>> >>> -- >>> Salvatore Larosa >>> linkedIn: http://linkedin.com/in/larosasalvatore >>> twitter: @lrssvt >>> skype: s.larosa >>> IRC: lrssvt on freenode >>> >> >> > -- Salvatore Larosa linkedIn: http://linkedin.com/in/larosasalvatore twitter: @lrssvt skype: s.larosa IRC: lrssvt on freenode
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user