[GRASS-SVN] r71908 - grass/branches/releasebranch_7_4/raster/r.support

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 8 01:49:28 PST 2017


Author: lucadelu
Date: 2017-12-08 01:49:28 -0800 (Fri, 08 Dec 2017)
New Revision: 71908

Modified:
   grass/branches/releasebranch_7_4/raster/r.support/r.support.html
Log:
r.support: added examples, thanks to Jerry Huang and Google Code-in

Modified: grass/branches/releasebranch_7_4/raster/r.support/r.support.html
===================================================================
--- grass/branches/releasebranch_7_4/raster/r.support/r.support.html	2017-12-08 09:49:05 UTC (rev 71907)
+++ grass/branches/releasebranch_7_4/raster/r.support/r.support.html	2017-12-08 09:49:28 UTC (rev 71908)
@@ -5,6 +5,29 @@
 history, and title is supported. Category labels can also be copied from
 another raster map.
 
+<h2>EXAMPLES</h2>
+These examples are based on the North Carolina dataset, more specfically the <em>landuse</em> raster map.
+
+Copy the landuse map to the current mapset
+<div class="code"><pre>g.copy raster=landuse,my_landuse
+</pre></div>
+
+<h3>Update statistics</h3>
+<div class="code"><pre>r.support -s map=my_landuse 
+</pre></div>
+
+<h3>Update Title</h3>
+<div class="code"><pre>r.support map=my_landuse title="Landuse copied"
+</pre></div>
+
+<h3>Append to History Metadata</h3>
+<div class="code"><pre>r.support map=my_landuse history="Copied from PERMANENT mapset"
+</pre></div>
+
+<h3>Update Units Display</h3>
+<div class="code"><pre>r.support map=my_landuse units=meter
+</pre></div>
+
 <h2>NOTES</h2>
 
 If metadata options such as <b>title</b> or <b>history</b> are given the



More information about the grass-commit mailing list