[GRASS-SVN] r72006 - grass/branches/releasebranch_7_2/general/g.mapset

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 30 03:18:13 PST 2017


Author: neteler
Date: 2017-12-30 03:18:13 -0800 (Sat, 30 Dec 2017)
New Revision: 72006

Modified:
   grass/branches/releasebranch_7_2/general/g.mapset/g.mapset.html
Log:
g.mapset manual: example added (contributed by Jerry Huang and Google Code-in); examples restructured

Modified: grass/branches/releasebranch_7_2/general/g.mapset/g.mapset.html
===================================================================
--- grass/branches/releasebranch_7_2/general/g.mapset/g.mapset.html	2017-12-30 11:14:40 UTC (rev 72005)
+++ grass/branches/releasebranch_7_2/general/g.mapset/g.mapset.html	2017-12-30 11:18:13 UTC (rev 72006)
@@ -20,7 +20,42 @@
 HISTFILE=/"$GISDBASE/$LOCATION/$MAPSET"/.bash_history
 </pre></div>
 
+<h2>EXAMPLES</h2>
 
+<h3>Print the name of the current mapset</h3>
+
+To print the name of the current mapset, use the <b>-p</b> command as
+shown below:
+<div class="code"><pre>
+g.mapset -p
+</pre></div>
+
+
+<h3>List available mapsets</h3>
+To list available mapsets, use the <b>-l</b> command as shown below:
+<div class="code"><pre>
+g.mapset -l
+</pre></div>
+
+This should list all the mapsets, such as: "landsat new PERMANENT user1."
+
+<h3>Change the current mapset</h3>
+To change the current mapset to "user1" use the following command:
+
+<div class="code"><pre>
+g.mapset mapset=user1 location=nc_spm_08_grass7
+</pre></div>
+
+You should receive the following message: "Mapset switched. Your shell
+continues to use the history for the old mapset." 
+
+<h3>Create a new mapset</h3>
+
+To create a new mapset, use the <b>-c</b> tag as shown below:
+<div class="code"><pre>
+g.mapset -c mapset=new location=nc_spm_08_grass7
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>



More information about the grass-commit mailing list