|
@@ -414,75 +414,6 @@ the script (like <tt>#!/bin/sh</tt>, <tt>#!/bin/bash</tt>, or <tt>#!/usr/bin/env
|
|
|
indicating which interpreter to be used for the script. The script file must
|
|
|
have its executable bit set.
|
|
|
|
|
|
-<h3>Other examples</h3>
|
|
|
-
|
|
|
-There are a variety of ways in which the <i>location environment
|
|
|
-variables</i> (see above) can be used to specify the mapset to use.
|
|
|
-The following are some possible examples.
|
|
|
-
|
|
|
-<h4>Example 1</h4>
|
|
|
-
|
|
|
-The environment variables are defined as follows:
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-LOCATION = /usr/local/share/grassdata/spearfish70/PERMANENT
|
|
|
-GISDBASE = /usr/local/share/grassdata
|
|
|
-LOCATION_NAME = spearfish70
|
|
|
-MAPSET = PERMANENT
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-Start GRASS with the following command:
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-grass75 -
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-GRASS will start with the mapset defined by LOCATION since the LOCATION
|
|
|
-variable overrides the other variables.
|
|
|
-
|
|
|
-<h4>Example 2</h4>
|
|
|
-
|
|
|
-The environment variables are defined as follows:
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-GISDBASE = /usr/local/share/grassdata
|
|
|
-LOCATION_NAME = spearfish70
|
|
|
-MAPSET = PERMANENT
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-Start GRASS with the following command:
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-grass75 -
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-GRASS will start with the mapset defined by
|
|
|
-GISDBASE/LOCATION_NAME/MAPSET.
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-grass75 /usr/home/grass/data/thailand/forests
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-GRASS will start with the
|
|
|
-mapset <tt>/home/grass/data/thailand/forests</tt> which overrides the
|
|
|
-environment variables.
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-grass75 swamps
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-GRASS will start with the mapset defined by
|
|
|
-GISDBASE/LOCATION_NAME/swamps since the command line argument for the
|
|
|
-mapset overrides the environment variable MAPSET.
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-grass75 thailand/forests
|
|
|
-</pre></div>
|
|
|
-
|
|
|
-GRASS will start with the mapset defined by GISDBASE/thailand/forests
|
|
|
-since the command line arguments for the location and mapset overrides
|
|
|
-the environment variables LOCATION_NAME and MAPSET.
|
|
|
-
|
|
|
<h2>CAVEAT</h2>
|
|
|
|
|
|
If you start GRASS using the <em><a href="wxGUI.html">wxGUI</a></em>
|