<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Maurício de Paulo</b> <span dir="ltr"><<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>></span><br>
Date: 2009/9/11<br>Subject: Re: [Qgis-user] Python Batch Processing<br>To: <a href="mailto:Agustin.Lobo@ija.csic.es">Agustin.Lobo@ija.csic.es</a><br><br><br>Ok, the parameter textEdit is a place where you can set parameters just like a shell command. The %dir: ...% tag is replaced for the filenames from the folder in each iteration.<br>
So you misplaced the file names there. Try cleaning the parameter box before inserting the insert Repeat for Directory. (I don't think the gui is user friendly enough on this use case).<br>
Thanks for the feedback<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2009/9/11 Agustin Lobo <span dir="ltr"><<a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It worked for gdalinfo and 1 file, but got<br>
this result when tried a directory (I selected Repeat for Directory and<br>
selected a directory).<br>
Will try a gdal_translate later and will let you know.<br>
Thanks<div><br>
<br>
Agus<br>
<br>
Maurício de Paulo wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<a href="http://ufpr.dl.sourceforge.net/project/pybatchproc/ScreenShots/main-gdal.jpg" target="_blank">http://ufpr.dl.sourceforge.net/project/pybatchproc/ScreenShots/main-gdal.jpg</a><br>
This is just a simple example with gdalinfo<br>
I've done a example that shows exactly the problem I'd like to solve with this tool:<br>
<a href="http://master.dl.sourceforge.net/project/pybatchproc/ScreenShots/gdalwarp_ex.png" target="_blank">http://master.dl.sourceforge.net/project/pybatchproc/ScreenShots/gdalwarp_ex.png</a><br>
<a href="http://master.dl.sourceforge.net/project/pybatchproc/ScreenShots/gdalwarp_results.png" target="_blank">http://master.dl.sourceforge.net/project/pybatchproc/ScreenShots/gdalwarp_results.png</a><br>
<br>
As you can see in the screenshots, the tool is just an interface to run gdalwarp just like in the command line, but I can repeat the command replacing the tags %subdir:/home/vatto...% by every file in that subdirs.<br>
<br>
I don't know if I did myself clear enough so any questions on usage or sugestions on how to make it more user friendly are welcome.<br>
Mauricio de Paulo<br>
<br>
<br></div>
2009/9/11 Agustin Lobo <<a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a> <mailto:<a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a>>><div>

<br>
<br>
    Thanks Mauricio, installed.<br>
    You mentioned gdalutilites and FWT,<br>
    could you provide an example of using<br>
    a gdal utility (i.e. gdalbioldvrt or gdal_translate)<br>
    and a FWT utility through your plugin?<br>
<br>
<br>
    Agus<br>
<br>
    Maurício de Paulo wrote:<br>
<br>
        Ok, as promised, it now works also as a qgis plugin.<br>
        I've uploaded it in the contributed repository so everyone could<br>
        download.<br>
        I hope you guys enjoy it. :D<br>
        Maurício de Paulo<br>
<br>
        2009/9/10 Maurício de Paulo <<a href="mailto:mauricio.dev@gmail.com" target="_blank">mauricio.dev@gmail.com</a><br></div>
        <mailto:<a href="mailto:mauricio.dev@gmail.com" target="_blank">mauricio.dev@gmail.com</a>> <mailto:<a href="mailto:mauricio.dev@gmail.com" target="_blank">mauricio.dev@gmail.com</a><div><br>
        <mailto:<a href="mailto:mauricio.dev@gmail.com" target="_blank">mauricio.dev@gmail.com</a>>>><br>
<br>
<br>
           Ok, I havent started the pyqgis section yet. I was still working<br>
           saving parameters to commands.<br>
           I'm going to start this right now. It should be finished by<br>
        the end<br>
           of this evening.<br>
           At the moment it only works standalone (just call it as a python<br>
           program).<br>
           Thanks for the interest<br>
           Maurício de Paulo<br>
<br>
           2009/9/10 Agustin Lobo <<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a><br>
        <mailto:<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a>><br></div>
           <mailto:<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a> <mailto:<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a>>>><div><div></div>

<div><br>
<br>
<br>
               Mauricio,<br>
               how should we use it?<br>
               I've unzipped under .qgis/python/plugins<br>
               but the get an error upon qgis start up:<br>
<br>
               Couldn't load plugin "pybatchproc" from<br>
               ['/usr/share/qgis/python',<br>
               '/home/alobo/.qgis//python/plugins/symbology_ng',<br>
               '/home/alobo/.qgis//python/plugins',<br>
               '/usr/share/qgis/python/plugins', '/usr/lib/python2.6',<br>
               '/usr/lib/python2.6/plat-linux2',<br>
        '/usr/lib/python2.6/lib-tk',<br>
               '/usr/lib/python2.6/lib-old',<br>
        '/usr/lib/python2.6/lib-dynload',<br>
               '/usr/lib/python2.6/dist-packages',<br>
               '/usr/lib/python2.6/dist-packages/Numeric',<br>
               '/usr/lib/python2.6/dist-packages/PIL',<br>
               '/usr/lib/python2.6/dist-packages/gst-0.10',<br>
               '/var/lib/python-support/python2.6',<br>
               '/usr/lib/python2.6/dist-packages/gtk-2.0',<br>
               '/var/lib/python-support/python2.6/gtk-2.0',<br>
               '/usr/local/lib/python2.6/dist-packages',<br>
               '/usr/share/qgis/python/plugins/fTools/tools',<br>
        '~/.qgis/python',<br>
               '/usr/share/qgis/python/', '/usr/share/qgis/python/',<br>
               '/usr/share/qgis/python']<br>
<br>
               Traceback (most recent call last):<br>
                File "", line 2, in<br>
               ImportError: No module named pybatchproc<br>
<br>
               Python version:<br>
               2.6.2 (release26-maint, Apr 19 2009, 02:11:59)<br>
               [GCC 4.3.3]<br>
<br>
<br>
               Agus<br>
<br>
               Maurício de Paulo wrote:<br>
<br>
                   Hi list,<br>
                   As I am a serious user of GDAL Utilities and FWTools,<br>
        I've<br>
                   found myself manytimes trying to repeat a ogr2gr or a<br>
                   gdalwarp for whole directories and writing much bash<br>
        and bat<br>
                   code for the task. As a solution the the guys who<br>
        work with<br>
                   me I've written the PyBatchProc script that is a QT<br>
        gui to<br>
                   run command-line tools for series of files in folders or<br>
                   subfolders.<br>
<br>
                   I'm planning on creating a QGIS plugin script to let the<br>
                   tool run from inside QGIS too.<br>
<br>
                          <a href="https://sourceforge.net/projects/pybatchproc/files/pybatchproc_0_1.zip/download" target="_blank">https://sourceforge.net/projects/pybatchproc/files/pybatchproc_0_1.zip/download</a><br>
<br>
                   Any bugs found or sugestions are welcome.<br>
                   I hope you enjoy.<br>
<br>
                   Maurício de Paulo<br>
<br>
                          ------------------------------------------------------------------------<br>
<br>
                   _______________________________________________<br>
                   Qgis-user mailing list<br>
                   <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
        <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>><br>
        <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
        <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>>><br>
<br>
                   <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                   <br>
<br>
<br>
<br>
    --     Dr. Agustin Lobo<br>
    Institut de Ciencies de la Terra "Jaume Almera" (CSIC)<br>
    LLuis Sole Sabaris s/n<br>
    08028 Barcelona<br>
    Spain<br>
    Tel. 34 934095410<br>
    Fax. 34 934110012<br></div></div>
    email: <a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a> <mailto:<a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a>><div><br>
    <a href="http://www.ija.csic.es/gt/obster" target="_blank">http://www.ija.csic.es/gt/obster</a><br>
<br>
<br>
</div></blockquote><div><div></div><div>
<br>
-- <br>
Dr. Agustin Lobo<br>
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)<br>
LLuis Sole Sabaris s/n<br>
08028 Barcelona<br>
Spain<br>
Tel. 34 934095410<br>
Fax. 34 934110012<br>
email: <a href="mailto:Agustin.Lobo@ija.csic.es" target="_blank">Agustin.Lobo@ija.csic.es</a><br>
<a href="http://www.ija.csic.es/gt/obster" target="_blank">http://www.ija.csic.es/gt/obster</a><br>
</div></div></blockquote></div><br>
</div></div></div><br>