Statistics
| Revision:

gvsig-geoprocess / org.gvsig.geoprocess / trunk / org.gvsig.geoprocess / org.gvsig.geoprocess.app / org.gvsig.geoprocess.app.mainplugin / src / main / resources / help / en / general / grass_sextante.html @ 338

History | View | Annotate | Download (4.87 KB)

1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head>
3

    
4

    
5

    
6
  
7
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>GRASS-SEXTANTE</title></head><body>
8

    
9
<h2>Configuring and using GRASS from SEXTANTE.</h2>
10

    
11
<br>
12

    
13
This documents describes how to configure SEXTANTE so it can call GRASS
14
algorithms and incorporate them into its own&nbsp;set of geoalgorithms.
15
It also gives some additional information on the mechanism used by
16
SEXTANTE to integrate GRASS functions, which should be useful for all
17
users, but specially for those familiar with the GRASS command-line
18
interface.<br>
19

    
20
<br>
21

    
22
Configuring SEXTANTE to use GRASS takes just a few easy steps. Once you
23
have configured the system, you will be able to execute GRASS
24
algorithms from any SEXTANTE component like the toolbox or the
25
graphical modeller, just like you do with any other SEXTANTE
26
geoalgorithm.<br>
27

    
28
<br>
29

    
30
Open the settings dialog and select the GRASS menu. You will see something like this:<br>
31

    
32
<br>
33
<img style="width: 605px; height: 501px;" alt="" src="grass_conf_en.png"><br>
34

    
35
<br>
36

    
37
Only two parameters must be set, namely:<br>
38

    
39
<br>
40
<ul>
41
  <li>
42
The path to the grass installation folder. &nbsp;Needed by SEXTANTE to
43
execute GRASS commands. Under Linux, this is usually usr/lib/grassXX<br>
44
</li>
45
  <li>
46
The path to a GRASS mapset. The mapset doesn't have to contain any data
47
at all, since data will be imported automatically each time you execute
48
an algorithm. The only important part of the mapset is the location
49
information, particularly the Coordinate Reference System. You must set
50
the same CRS that is used by the layers that you want to process using
51
GRASS algorithms. If, for instance, you have layers with data in the
52
EPSG 23030 reference system, you must set the mapset to that same
53
reference system. When data is imported into the mapset, no
54
reprojection is performed, and layers are assumed to be in the same
55
projection as the mapset itself.</li>
56
</ul>
57

    
58
<br>
59
Once you have set the previous paths, click on OK to close the settings
60
dialog. SEXTANTE will now try to execute GRASS and create the
61
definition files that are used to generate the graphical interfaces of
62
all the suitable GRASS algorithms, along with the corresponding help
63
files. This process might take a few seconds. If you are running
64
Windows, you will see a new window (by default it is minimized). Just
65
wait until it closes. After that, GRASS
66
algorithms will be shown in the toolbox and identified with a GRASS
67
icon. They will appear in a new branch named "GRASS" in the algorithms
68
tree -which contains two groups: raster (r.*) and vector (v.*)-, and
69
also in the usual groups used for built-in SEXTANTE algorithms. This
70
way, it is easier to find the right algorithm, both for SEXTANTE users
71
with no previous GRASS experience and former GRASS users.<br>
72

    
73
<br>
74

    
75
Not all GRASS algorithms are available from SEXTANTE. Some of them are
76
not compatible with the architecture of SEXTANTE and its
77
algorithm-definition semantics, while others do not make much sense in
78
the context of SEXTANTE (like, for instance, those used to digitize and
79
create new vector layer). Unsuitable algorithms are automatically
80
removed and will not appear in any SEXTANTE component.<br>
81

    
82
<br>
83

    
84
<h2>How the SEXTANTE-GRASS integration works. Limitations and other issues.</h2>
85
<br>
86
If you are a GRASS user, it might be useful for you to know how
87
SEXTANTE calls GRASS algorithms and comunicates with the GRASS
88
interface. This can be summarized in the following steps:<br>
89
<br>
90
<ul>
91
  <li>Importing data. The layers that have been selected as input are
92
imported into the GRASS mapset. Not every layer that you can open in
93
your GIS can be used to execute a GRASS algorithm. It must be a
94
file-based layer and it must have a format compatible with the
95
capabilities of the GRASS modules that import external data. Refer to
96
the GRASS help files for further information.</li>
97
  <li>Processing. The selected GRASS algorithm is executed.</li>
98
  <li>Exporting results. Resulting data are exported to the filenames
99
selected by the user in the input parameters dialog. Only layers
100
(whether raster or vector) are exported. Any other results that might
101
have been created by the algorithm (such as, for instance, text results
102
shown in the console window) are not handled, and therefore, they will
103
not be presented as results by the wrapping SEXTANTE algorithm. Also,
104
take into account that exporting data also has its limitations, and not
105
all the information generated might be available. For instance,
106
topological information will be lost, since data are exported to
107
shapefile format, which cannot store it. for further details, check the
108
help file associated with GRASS export modules.</li>
109
</ul>
110
<br>
111
All this steps are stored in a batch file that is executed using the
112
GRASS_BATCH_JOB variable. When SEXTANTE&nbsp;invokes GRASS, the
113
commands in the batch file are executed and GRASS closes up
114
automatically after that.<br>
115

    
116
</body></html>