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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 2 18:45:49 EDT 2008


Author: neteler
Date: 2008-05-02 18:45:49 -0400 (Fri, 02 May 2008)
New Revision: 31219

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

Modified: grass-addons/vector/v.colors/description.html
===================================================================
--- grass-addons/vector/v.colors/description.html	2008-05-02 22:13:29 UTC (rev 31218)
+++ grass-addons/vector/v.colors/description.html	2008-05-02 22:45:49 UTC (rev 31219)
@@ -15,6 +15,26 @@
 DB. Better would be a C module which rendered directly instead of saving
 the colors in the DB.
 
+<h2>EXAMPLES</h2>
+
+Colorizing a TIN generated by <em>v.delaunay</em>:
+
+<div class="code"><pre>
+# new columns for x,y,z of centroids
+v.db.addtable tin col="east double precision, north double precision, height double precision, GRASSRGB varchar(11)"
+
+# transfer geometry for colorizing (we need the centroid height)
+v.to.db tin opt=coor col="east,north,height"
+v.db.select tin
+
+v.colors tin column=height rgb_column=GRASSRGB color=rainbow
+
+# display colorized triangles
+d.mon x0
+d.vect -a tin
+</pre></div>
+
+
 <H2>SEE ALSO</H2>
 
 <EM><A HREF="r.colors.html">colors</A></EM>



More information about the grass-commit mailing list