Skip to content

Commit 1420a70

Browse files
author
volayaf
committed
updated help
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@264 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
1 parent 6485902 commit 1420a70

File tree

6 files changed

+28
-25
lines changed

6 files changed

+28
-25
lines changed

src/sextante/help/3rdParty.html

+8-11
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,16 @@ <h1>Configuring external applications<a class="headerlink" href="#configuring-ex
5252
<div class="section" id="introduction">
5353
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline"></a></h2>
5454
<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
5859
additional applications. Once you have correctly configured the system,
5960
you will be able to execute external algorithms from any SEXTANTE
6061
component like the toolbox or the graphical modeler, just like you do
6162
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 &#8220;Activate&#8221; 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>
6463
<div class="section" id="a-note-on-file-formats">
6564
<h3>A note on file formats<a class="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 &#8220;native&#8221; SEXTANTE algorithm. The main one of them is related to the file formats supported both for input and for output.</p>
6765
<p>When using an external software, opening a file in QGIS does not mean
6866
that it can be opened and processed as well on that other software. In
6967
most cases, it can read what you have opened in QGIS, but in some cases,
@@ -116,7 +114,7 @@ <h3>A note on vector layer selections<a class="headerlink" href="#a-note-on-vect
116114
<h2>SAGA<a class="headerlink" href="#saga" title="Permalink to this headline"></a></h2>
117115
<p>SAGA algorithms can be run from SEXTANTE if you have SAGA installed in
118116
your system and you configure SEXTANTE properly so it can find SAGA
119-
executables. In particular, the SAGA command-line executable is needed
117+
executables. In particular, the SAGA commandline executable is needed
120118
to run SAGA algorithms. SAGA binaries are not included with SEXTANTE, so
121119
you have to download and install the software yourself. Please check the
122120
SAGA website at for more information. SAGA 2.0.8 is needed.</p>
@@ -189,7 +187,7 @@ <h2>R. Creating R scripts<a class="headerlink" href="#r-creating-r-scripts" titl
189187
the syntax to use to call those R commands from SEXTANTE and how to use
190188
SEXTANTE objects (layers, tables) in them.</p>
191189
<p>The first thing you have to do, as we saw in the case of SAGA, is to
192-
tell SEXTANTE where your R binaries are located. You can do so using the
190+
tell SEXTANTE where you R binaries are located. You can do so using the
193191
<em>R folder</em> entry in the SEXTANTE configuration dialog. Once you have set
194192
that parameter, you can start creating your own R scripts and executing
195193
them.</p>
@@ -267,9 +265,8 @@ <h2>R. Creating R scripts<a class="headerlink" href="#r-creating-r-scripts" titl
267265
console instead, you have to tell SEXTANTE that you want the console to
268266
be shown once the execution is finished. To do so, just start the
269267
command lines that produce the results you want to print with the
270-
<span class="math">
271-
\(&gt;\)</span>
272-
” sign. The output of all other lines will not be shown. For
268+
<math xmlns="http://www.w3.org/1998/Math/MathML">
269+
<mrow><mo>&gt;</mo></mrow></math>” sign. The output of all other lines will not be shown. For
273270
instance, here is the description file of an algorithms that performs a
274271
normality test on a given field (column) of the attributes of a vector
275272
layer:</p>

src/sextante/help/_sources/3rdParty.txt

+5-13
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,18 @@ Introduction
55
------------
66

77
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.
1211
This chapter will show you how to configure SEXTANTE to include these
1312
additional applications. Once you have correctly configured the system,
1413
you will be able to execute external algorithms from any SEXTANTE
1514
component like the toolbox or the graphical modeler, just like you do
1615
with any other SEXTANTE geoalgorithm.
1716

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-
2317
A note on file formats
2418
~~~~~~~~~~~~~~~~~~~~~~
2519

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-
2820
When using an external software, opening a file in QGIS does not mean
2921
that it can be opened and processed as well on that other software. In
3022
most cases, it can read what you have opened in QGIS, but in some cases,
@@ -84,7 +76,7 @@ SAGA
8476

8577
SAGA algorithms can be run from SEXTANTE if you have SAGA installed in
8678
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 commandline executable is needed
8880
to run SAGA algorithms. SAGA binaries are not included with SEXTANTE, so
8981
you have to download and install the software yourself. Please check the
9082
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
168160
SEXTANTE objects (layers, tables) in them.
169161

170162
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
172164
*R folder* entry in the SEXTANTE configuration dialog. Once you have set
173165
that parameter, you can start creating your own R scripts and executing
174166
them.

src/sextante/help/_sources/console.txt

+7
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ real examples of how to create algorithms using this feature of
336336
SEXTANTE. You can right-click on any script algorithm and select *Edit
337337
script* to edit its code or just to see it.
338338

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.
345+
339346
Communicating with the user
340347
----------------------------
341348

src/sextante/help/console.html

+6
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,11 @@ <h2>Creating scripts and running them from the toolbox<a class="headerlink" href
329329
SEXTANTE. You can right-click on any script algorithm and select <em>Edit
330330
script</em> to edit its code or just to see it.</p>
331331
</div>
332+
<div class="section" id="documenting-your-scripts">
333+
<h2>Documenting your scripts<a class="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&#8217;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>
336+
</div>
332337
<div class="section" id="communicating-with-the-user">
333338
<h2>Communicating with the user<a class="headerlink" href="#communicating-with-the-user" title="Permalink to this headline"></a></h2>
334339
<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 <tt class="docutils literal"><span class="pre">print</span></tt> command. For instance, just use <tt class="docutils literal"><span class="pre">print</span> <span class="pre">&quot;Processing</span> <span class="pre">polygon</span> <span class="pre">layer&quot;</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>
348353
<li><a class="reference internal" href="#introduction">Introduction</a></li>
349354
<li><a class="reference internal" href="#calling-sextante-from-the-python-console">Calling SEXTANTE from the Python console</a></li>
350355
<li><a class="reference internal" href="#creating-scripts-and-running-them-from-the-toolbox">Creating scripts and running them from the toolbox</a></li>
356+
<li><a class="reference internal" href="#documenting-your-scripts">Documenting your scripts</a></li>
351357
<li><a class="reference internal" href="#communicating-with-the-user">Communicating with the user</a></li>
352358
</ul>
353359
</li>

src/sextante/help/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ <h1>SEXTANTE for QGIS&#8217;s documentation<a class="headerlink" href="#sextante
8989
<li class="toctree-l2"><a class="reference internal" href="console.html#introduction">Introduction</a></li>
9090
<li class="toctree-l2"><a class="reference internal" href="console.html#calling-sextante-from-the-python-console">Calling SEXTANTE from the Python console</a></li>
9191
<li class="toctree-l2"><a class="reference internal" href="console.html#creating-scripts-and-running-them-from-the-toolbox">Creating scripts and running them from the toolbox</a></li>
92+
<li class="toctree-l2"><a class="reference internal" href="console.html#documenting-your-scripts">Documenting your scripts</a></li>
9293
<li class="toctree-l2"><a class="reference internal" href="console.html#communicating-with-the-user">Communicating with the user</a></li>
9394
</ul>
9495
</li>

0 commit comments

Comments
 (0)