You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h2>Introduction<aclass="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
54
54
<p>SEXTANTE can be extended using additional applications, calling them
55
-
from within SEXTANTE.</p>
56
-
<p>By default, algorithms coming from external applications are not activated unless SEXTANTE has checked that the corresponding applications are installed in your system and can be executed. That means that there are probably many more algorithms available than those that you can see in the toolbox, but some extra configuration is needed to have them fully operational.</p>
57
-
<p>This chapter will show you how to configure SEXTANTE to include these
55
+
from within SEXTANTE. Currently, SAGA, GRASS, OTB(Orfeo Toolbox) and R are supported, along
56
+
with some other command-line applications that provide spatial data
57
+
analysis functionalities.
58
+
This chapter will show you how to configure SEXTANTE to include these
58
59
additional applications. Once you have correctly configured the system,
59
60
you will be able to execute external algorithms from any SEXTANTE
60
61
component like the toolbox or the graphical modeler, just like you do
61
62
with any other SEXTANTE geoalgorithm.</p>
62
-
<p>At the time of writing this manual, SEXTANTE has two external providers activated by default: GRASS and GDAL. This providers are activated because QGIS includes both the GRASS binaries and the GDAL library files, so there is no need for further configuration (QGIS developers have done that in advance for you). This might change in other versions, but for now it means that you need to manually install and configure those external programs. Do not worry, this is very easy to do. If you are running Linux, you just have to install the software yourself and then activate the corresponding algorithm provider. If you are running Windows, you should also tell SEXTANTE the path to the software.</p>
63
-
<p>For each algorithm provider there is a group entry in the SEXTANTE configuration dialog, which contains at least an “Activate” item. Other parameters might appear if they are needed to configure the provider (mostly paths to executales and additional files). In the following sections, we will see how to set those parameters for the main providers currently available for SEXTANTE. But first, a couple of quick notes with important information about using algorithms based on external applications.</p>
64
63
<divclass="section" id="a-note-on-file-formats">
65
64
<h3>A note on file formats<aclass="headerlink" href="#a-note-on-file-formats" title="Permalink to this headline">¶</a></h3>
66
-
<p>Algorithms provided by external applications have some differences when compared to “native” SEXTANTE algorithm. The main one of them is related to the file formats supported both for input and for output.</p>
67
65
<p>When using an external software, opening a file in QGIS does not mean
68
66
that it can be opened and processed as well on that other software. In
69
67
most cases, it can read what you have opened in QGIS, but in some cases,
Copy file name to clipboardExpand all lines: src/sextante/help/_sources/3rdParty.txt
+5-13
Original file line number
Diff line number
Diff line change
@@ -5,26 +5,18 @@ Introduction
5
5
------------
6
6
7
7
SEXTANTE can be extended using additional applications, calling them
8
-
from within SEXTANTE.
9
-
10
-
By default, algorithms coming from external applications are not activated unless SEXTANTE has checked that the corresponding applications are installed in your system and can be executed. That means that there are probably many more algorithms available than those that you can see in the toolbox, but some extra configuration is needed to have them fully operational.
11
-
8
+
from within SEXTANTE. Currently, SAGA, GRASS, OTB(Orfeo Toolbox) and R are supported, along
9
+
with some other command-line applications that provide spatial data
10
+
analysis functionalities.
12
11
This chapter will show you how to configure SEXTANTE to include these
13
12
additional applications. Once you have correctly configured the system,
14
13
you will be able to execute external algorithms from any SEXTANTE
15
14
component like the toolbox or the graphical modeler, just like you do
16
15
with any other SEXTANTE geoalgorithm.
17
16
18
-
At the time of writing this manual, SEXTANTE has two external providers activated by default: GRASS and GDAL. This providers are activated because QGIS includes both the GRASS binaries and the GDAL library files, so there is no need for further configuration (QGIS developers have done that in advance for you). This might change in other versions, but for now it means that you need to manually install and configure those external programs. Do not worry, this is very easy to do. If you are running Linux, you just have to install the software yourself and then activate the corresponding algorithm provider. If you are running Windows, you should also tell SEXTANTE the path to the software.
19
-
20
-
For each algorithm provider there is a group entry in the SEXTANTE configuration dialog, which contains at least an "Activate" item. Other parameters might appear if they are needed to configure the provider (mostly paths to executales and additional files). In the following sections, we will see how to set those parameters for the main providers currently available for SEXTANTE. But first, a couple of quick notes with important information about using algorithms based on external applications.
21
-
22
-
23
17
A note on file formats
24
18
~~~~~~~~~~~~~~~~~~~~~~
25
19
26
-
Algorithms provided by external applications have some differences when compared to "native" SEXTANTE algorithm. The main one of them is related to the file formats supported both for input and for output.
27
-
28
20
When using an external software, opening a file in QGIS does not mean
29
21
that it can be opened and processed as well on that other software. In
30
22
most cases, it can read what you have opened in QGIS, but in some cases,
@@ -84,7 +76,7 @@ SAGA
84
76
85
77
SAGA algorithms can be run from SEXTANTE if you have SAGA installed in
86
78
your system and you configure SEXTANTE properly so it can find SAGA
87
-
executables. In particular, the SAGA command-line executable is needed
79
+
executables. In particular, the SAGA command–line executable is needed
88
80
to run SAGA algorithms. SAGA binaries are not included with SEXTANTE, so
89
81
you have to download and install the software yourself. Please check the
90
82
SAGA website at for more information. SAGA 2.0.8 is needed.
@@ -168,7 +160,7 @@ the syntax to use to call those R commands from SEXTANTE and how to use
168
160
SEXTANTE objects (layers, tables) in them.
169
161
170
162
The first thing you have to do, as we saw in the case of SAGA, is to
171
-
tell SEXTANTE where your R binaries are located. You can do so using the
163
+
tell SEXTANTE where you R binaries are located. You can do so using the
172
164
*R folder* entry in the SEXTANTE configuration dialog. Once you have set
173
165
that parameter, you can start creating your own R scripts and executing
Copy file name to clipboardExpand all lines: src/sextante/help/_sources/console.txt
+7
Original file line number
Diff line number
Diff line change
@@ -336,6 +336,13 @@ real examples of how to create algorithms using this feature of
336
336
SEXTANTE. You can right-click on any script algorithm and select *Edit
337
337
script* to edit its code or just to see it.
338
338
339
+
Documenting your scripts
340
+
--------------------------
341
+
342
+
As in the case of models, you can create additional documentation for your script, to explain what they do and how to use them. In the script editing dialog you will find a *Edit script help* button. Click on it and it will take you to the help editing dialog. Check the chapter about the graphical modeler to know more about this dialog and how to use it.
343
+
344
+
Help files are saved in the same folder as the script itself, adding the *.help* extension to the filename. Notice that you can edit your script's help before saving it for the first time. If you later close the script editing dialog without saving the script (i.e. you discard it), the help content you wrote will be lost. If your script was already saved and is associated to a filename, saving is done automatically.
<h2>Documenting your scripts<aclass="headerlink" href="#documenting-your-scripts" title="Permalink to this headline">¶</a></h2>
334
+
<p>As in the case of models, you can create additional documentation for your script, to explain what they do and how to use them. In the script editing dialog you will find a <em>Edit script help</em> button. Click on it and it will take you to the help editing dialog. Check the chapter about the graphical modeler to know more about this dialog and how to use it.</p>
335
+
<p>Help files are saved in the same folder as the script itself, adding the <em>.help</em> extension to the filename. Notice that you can edit your script’s help before saving it for the first time. If you later close the script editing dialog without saving the script (i.e. you discard it), the help content you wrote will be lost. If your script was already saved and is associated to a filename, saving is done automatically.</p>
<h2>Communicating with the user<aclass="headerlink" href="#communicating-with-the-user" title="Permalink to this headline">¶</a></h2>
334
339
<p>You can send messages to the user to inform about the progress of the algorithm. To do so, just print whatever information you want to show in the textbox above the progress bar in the algorithm dialog, using the <ttclass="docutils literal"><spanclass="pre">print</span></tt> command. For instance, just use <ttclass="docutils literal"><spanclass="pre">print</span><spanclass="pre">"Processing</span><spanclass="pre">polygon</span><spanclass="pre">layer"</span></tt> and the text will be redirected to that textbox.</p>
@@ -348,6 +353,7 @@ <h3><a href="index.html">Table Of Contents</a></h3>
<li><aclass="reference internal" href="#calling-sextante-from-the-python-console">Calling SEXTANTE from the Python console</a></li>
350
355
<li><aclass="reference internal" href="#creating-scripts-and-running-them-from-the-toolbox">Creating scripts and running them from the toolbox</a></li>
356
+
<li><aclass="reference internal" href="#documenting-your-scripts">Documenting your scripts</a></li>
351
357
<li><aclass="reference internal" href="#communicating-with-the-user">Communicating with the user</a></li>
<liclass="toctree-l2"><aclass="reference internal" href="console.html#calling-sextante-from-the-python-console">Calling SEXTANTE from the Python console</a></li>
91
91
<liclass="toctree-l2"><aclass="reference internal" href="console.html#creating-scripts-and-running-them-from-the-toolbox">Creating scripts and running them from the toolbox</a></li>
92
+
<liclass="toctree-l2"><aclass="reference internal" href="console.html#documenting-your-scripts">Documenting your scripts</a></li>
92
93
<liclass="toctree-l2"><aclass="reference internal" href="console.html#communicating-with-the-user">Communicating with the user</a></li>
0 commit comments