[GRASS-SVN] r31252 - grass-addons/vector/v.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 5 04:14:08 EDT 2008


Author: hamish
Date: 2008-05-05 04:14:07 -0400 (Mon, 05 May 2008)
New Revision: 31252

Modified:
   grass-addons/vector/v.colors/description.html
Log:
add another example

Modified: grass-addons/vector/v.colors/description.html
===================================================================
--- grass-addons/vector/v.colors/description.html	2008-05-05 08:00:30 UTC (rev 31251)
+++ grass-addons/vector/v.colors/description.html	2008-05-05 08:14:07 UTC (rev 31252)
@@ -20,8 +20,25 @@
 If the target column name given by the <b>rgb_column</b> option does
 not exist, it will be created. The default name is "<tt>GRASSRGB</tt>".
 
-<h2>EXAMPLE</h2>
+<h2>EXAMPLES</h2>
 
+Create a random sample point map, query raster map values for those points,
+and colorize output.
+
+<div class="code"><pre>
+# Spearfish dataset
+g.region -d
+v.random out=rand5k_elev n=5000
+v.db.addtable map=rand5k_elev column='elevation double precision'
+v.what.rast vector=rand5k_elev raster=elevation.10m column=elevation
+v.colors map=rand5k_elev column=elevation color=bcyr
+d.mon x0
+d.vect -a rand5k_elev
+</pre></div>
+
+
+<P>
+
 Colorizing a TIN generated by <em>v.delaunay</em>:
 
 <div class="code"><pre>



More information about the grass-commit mailing list