-
-
Notifications
You must be signed in to change notification settings - Fork 308
/
README
81 lines (57 loc) · 2.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
o GRASS text mode startup
"grass74" starts up d.m by default (if not first time user).
"grass74 -text" will start up in text mode.
"grass74 -wxpython" or "grass74 -gui" will start up in wxpython mode.
You can use alias "grass74" to "grass74 -text" to use text mode by default.
Or set env var GRASS_GUI=text.
o GRASS non-interactive startup examples
You can startup GRASS non-interactively using some env variables.
LOCATION
GISDBASE
LOCATION_NAME
MAPSET
LOCATION var overrides GISDBASE/LOCATION_NAME/MAPSET location.
ex1)
export LOCATION=/usr/home/grass/usr/data1/loc1/map1
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 - # non-interactive startup using LOCATION location
ex2)
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 - # non-interactive startup using
# GISDBASE/LOCATION_NAME/MAPSET location
Also, the first argument of grass74 can override these env vars.
ex3)
export LOCATION=/usr/home/grass/usr/data1/loc1/map1
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 /usr/home/grass/usr/data2/loc2-1/map1-1
# non-interactive startup using
# /usr/home/grass/usr/data2/loc2-1/map1-1 location
ex4)
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 /usr/home/grass/usr/data2/loc2-1/map1-1
# non-interactive startup using
# /usr/home/grass/usr/data2/loc2-1/map1-1 location
ex5)
export LOCATION=/usr/home/grass/usr/data1/loc1/map1
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 map1-1 # non-interactive startup using
# GISDBASE/LOCATION_NAME/map1-1 location
ex6)
export LOCATION=/usr/home/grass/usr/data1/loc1/map1
export GISDBASE=/usr/home/grass/usr/data1
export LOCATION_NAME=loc1
export MAPSET=map1
grass74 loc2-1/map1-1
# non-interactive startup using
# GISDBASE/loc2-1/map1-1 location
Any suggestionss to <grass-dev@lists.osgeo.org>