Skip to content
Browse files
added pseudo-optional outputs
switched to rst-based help files

git-svn-id: 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed May 9, 2012
1 parent fe0e48b commit 45f56188559a6b7cddbe46871a905f8e3a78e95d
Showing with 6,638 additions and 2 deletions.
  1. +1 −1 src/sextante/
  2. +1 −0 src/sextante/gui/
  3. +11 −0 src/sextante/gui/
  4. +1 −1 src/sextante/gui/
  5. +4 −0 src/sextante/help/.buildinfo
  6. +406 −0 src/sextante/help/3rdParty.html
  7. BIN src/sextante/help/_images/batch_processing.png
  8. BIN src/sextante/help/_images/batch_processing_filepath.png
  9. BIN src/sextante/help/_images/batch_processing_right_click.png
  10. BIN src/sextante/help/_images/batch_processing_save.png
  11. BIN src/sextante/help/_images/extent.png
  12. BIN src/sextante/help/_images/extent_drag.png
  13. BIN src/sextante/help/_images/extent_list.png
  14. BIN src/sextante/help/_images/fixed_table.png
  15. BIN src/sextante/help/_images/help_edition.png
  16. BIN src/sextante/help/_images/history.png
  17. BIN src/sextante/help/_images/modeler_canvas.png
  18. BIN src/sextante/help/_images/models.png
  19. BIN src/sextante/help/_images/models_parameters.png
  20. BIN src/sextante/help/_images/models_parameters2.png
  21. BIN src/sextante/help/_images/models_parameters3.png
  22. BIN src/sextante/help/_images/models_parameters4.png
  23. BIN src/sextante/help/_images/models_parameters5.png
  24. BIN src/sextante/help/_images/multiple_selection.png
  25. BIN src/sextante/help/_images/number_selector.png
  26. BIN src/sextante/help/_images/parameters_dialog.png
  27. BIN src/sextante/help/_images/rendering_styles.png
  28. BIN src/sextante/help/_images/toolbox.png
  29. +342 −0 src/sextante/help/_sources/3rdParty.txt
  30. +99 −0 src/sextante/help/_sources/batch.txt
  31. +337 −0 src/sextante/help/_sources/console.txt
  32. +50 −0 src/sextante/help/_sources/history.txt
  33. +27 −0 src/sextante/help/_sources/index.txt
  34. +62 −0 src/sextante/help/_sources/intro.txt
  35. +246 −0 src/sextante/help/_sources/modeler.txt
  36. +275 −0 src/sextante/help/_sources/toolbox.txt
  37. BIN src/sextante/help/_static/ajax-loader.gif
  38. +540 −0 src/sextante/help/_static/basic.css
  39. BIN src/sextante/help/_static/comment-bright.png
  40. BIN src/sextante/help/_static/comment-close.png
  41. BIN src/sextante/help/_static/comment.png
  42. +256 −0 src/sextante/help/_static/default.css
  43. +247 −0 src/sextante/help/_static/doctools.js
  44. BIN src/sextante/help/_static/down-pressed.png
  45. BIN src/sextante/help/_static/down.png
  46. BIN src/sextante/help/_static/file.png
  47. +154 −0 src/sextante/help/_static/jquery.js
  48. BIN src/sextante/help/_static/minus.png
  49. BIN src/sextante/help/_static/plus.png
  50. +62 −0 src/sextante/help/_static/pygments.css
  51. +560 −0 src/sextante/help/_static/searchtools.js
  52. +151 −0 src/sextante/help/_static/sidebar.js
  53. +23 −0 src/sextante/help/_static/underscore.js
  54. BIN src/sextante/help/_static/up-pressed.png
  55. BIN src/sextante/help/_static/up.png
  56. +808 −0 src/sextante/help/_static/websupport.js
  57. +198 −0 src/sextante/help/batch.html
  58. +398 −0 src/sextante/help/console.html
  59. +95 −0 src/sextante/help/genindex.html
  60. +156 −0 src/sextante/help/history.html
  61. +177 −0 src/sextante/help/index.html
  62. +169 −0 src/sextante/help/intro.html
  63. +322 −0 src/sextante/help/modeler.html
  64. BIN src/sextante/help/objects.inv
  65. +99 −0 src/sextante/help/search.html
  66. +1 −0 src/sextante/help/searchindex.js
  67. +358 −0 src/sextante/help/toolbox.html
  68. BIN src/sextante/manual.pdf
  69. +2 −0 src/sextante/outputs/
@@ -120,7 +120,7 @@ def openAbout(self):

def openHelp(self):
filename = os.path.dirname(__file__) + "/manual.pdf"
filename = os.path.dirname(__file__) + "/help/index.html"
if == "nt":
elif sys.platform == "darwin":
@@ -95,6 +95,7 @@ def setParamValues(self):
if output.hidden:
output.value = self.paramTable.valueItems[].getValue() = self.paramTable.checkBoxes[].isChecked()

return True

@@ -24,6 +24,10 @@
from sextante.gui.FileSelectionPanel import FileSelectionPanel
from sextante.parameters.ParameterCrs import ParameterCrs
from sextante.gui.CrsSelectionPanel import CrsSelectionPanel
from sextante.outputs.OutputHTML import OutputHTML
from sextante.outputs.OutputRaster import OutputRaster
from sextante.outputs.OutputTable import OutputTable
from sextante.outputs.OutputVector import OutputVector

class ParametersPanel(QtGui.QWidget):

@@ -36,6 +40,7 @@ def __init__(self, alg, paramDialog):
self.valueItems = {}
self.labels = {}
self.widgets = {}
self.checkBoxes = {}
self.dependentItems = {}
self.iterateButtons = {}
self.showAdvanced = False
@@ -118,6 +123,12 @@ def initGUI(self):
widget = OutputSelectionPanel(output,self.alg)
if isinstance(output, (OutputRaster, OutputVector, OutputTable, OutputHTML)):
check = QtGui.QCheckBox()
check.setText("Open output file after running algorithm")
self.checkBoxes[] = check
self.valueItems[] = widget

@@ -15,7 +15,7 @@ class SextantePostprocessing:
def handleAlgorithmResults(alg, showResults = True):
htmlResults = False;
for out in alg.outputs:
if out.hidden:
if out.hidden or not
if isinstance(out, (OutputRaster, OutputVector, OutputTable)):
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 6f83281448af5e7105c17657cf4ed8c5
tags: fbb0d17656682115ca4d033fb2f83ba1

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

@@ -0,0 +1,99 @@
The SEXTANTE batch processing interface


SEXTANTE algorithms (including models) can be executed as a batch
process. That is, they can be executed using not a single set of inputs,
but several of them, executing the algorithm as many times as needed.
This is useful when processing large amounts of data, since it is not
necessary to launch the algorithm many times from the toolbox.

To execute an algorithm as a batch process, right-click on its name in
the toolbox and select the *Execute as batch process* option in the
pop-up menu that will appear

.. image:: batch_processing_right_click.png
:align: center

The parameters table

Executing a batch process is similar to performing a single execution of
an algorithm. Parameter values have to be defined, but in this case we
need not just a single value for each parameter, but a set of them
instead, one for each time the algorithm has to be executed. Values are
introduced using a table like the one shown next.

.. image:: batch_processing.png
:align: center

Each line of this table represents a single execution of the algorithm,
and each cell contains the value of one of the parameters. It is similar
to the parameters dialog that you see when executing an algorithm from
the toolbox, but with a different arrangement.

By default, the table contains just two rows. You can add or remove rows
using the buttons on the lower part of the window.

Once the size of the table has been set, it has to be filled with the
desired values

Filling the parameters table

For most parameters, setting its value is trivial. Just type the value
or select it from the list of available options, depending on the
parameter type.

The main differences are found for parameters representing layers or
tables, and for output filepaths. Regarding input layers and tables,
when an algorithm is executed as part of a batch process those input
data objects are taken directly from files, and not from the set of them
already opened in QGIS. For this reason, any algorithm can be executed
as a batch process even if no data objects at all are opened and the
algorithm cannot be run from the toolbox.

Filenames for input data objects are introduced directly typing or, more
conveniently, clicking on the button on the right hand of the cell,
which shows a typical file chooser dialog. Multiple files can be
selected at once. If the input parameter represents a single data object
and several files are selected, each one of them will be put in a
separate row, adding new ones if needed. If it represents a multiple
input, all the selected files will be added to a single cell, separated
by semicolons.

Output data objects are always saved to a file and, unlike when
executing an algorithm from the toolbox, saving to a temporary one is
not permitted. You can type the name directly or use the file chooser
dialog that appears when clicking on the accompanying button.

Once you select the file, a new dialog is shown to allow for
autocompletion of other cells in the same column (same parameter).

.. image:: batch_processing_save.png
:align: center

If the default value (*Do not autocomplete*) is selected, SEXTANTE will
just put the selected filename in the selected cell from the parameters
table. If any of the other options is selected, all the cells below the
selected one will be automatically filled based on a defined criteria.
This way, it is much easier to fill the table, and the batch process can
be defined with less effort.

Automatic filling can be done simply adding correlative numbers to the
selected filepath, or appending the value of another field at the same
row. This is particularly useful for naming output data object according
to input ones.

.. image:: batch_processing_filepath.png
:align: center

Executing the batch process

To execute the batch process once you have introduced all the necessary
values, just click on *OK*. SEXTANTE will show the progress of the
global batch process in the progress bar in the lower part of the

0 comments on commit 45f5618

Please sign in to comment.