[GRASS-SVN] r35825 - grass/branches/develbranch_6/scripts/v.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 9 08:06:33 EST 2009


Author: neteler
Date: 2009-02-09 08:06:32 -0500 (Mon, 09 Feb 2009)
New Revision: 35825

Modified:
   grass/branches/develbranch_6/scripts/v.colors/description.html
Log:
example cosmetics

Modified: grass/branches/develbranch_6/scripts/v.colors/description.html
===================================================================
--- grass/branches/develbranch_6/scripts/v.colors/description.html	2009-02-09 13:06:12 UTC (rev 35824)
+++ grass/branches/develbranch_6/scripts/v.colors/description.html	2009-02-09 13:06:32 UTC (rev 35825)
@@ -32,22 +32,40 @@
 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
+
+# display colorized points map
 d.mon x0
 d.vect -a rand5k_elev
 </pre></div>
 
+<p>
+Colorizing the roads map in Spearfish:
+<div class="code"><pre>
+g.copy vect=roads,myroads
+echo "1 red
+2 yellow
+3 orange
+4 black
+5 grey" &gt; colors.txt
 
+v.colors myroads column=cat rules=colors.txt
+
+# display colorized roads map
+d.mon x0
+d.vect -a myroads
+</pre></div>
+
+
 <P>
+Colorizing a TIN (polygons) generated by <em>v.delaunay</em>:
 
-Colorizing a TIN generated by <em>v.delaunay</em>:
-
 <div class="code"><pre>
 # new columns for x,y,z of centroids
 v.db.addtable map=tin \
    columns="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.to.db tin option=coor columns="east,north,height"
 v.db.select tin
 
 v.colors tin column=height rgb_column=GRASSRGB color=rainbow
@@ -57,23 +75,7 @@
 d.vect -a tin
 </pre></div>
 
-<p>
-Colorizing the roads map in Spearfish:
-<div class="code"><pre>
-g.copy vect=roads,myroads
-echo "1 red
-2 green
-3 blue
-4 orange
-5 purple" &gt; colors.txt
 
-v.colors myroads column=cat rules=colors.txt
-# display colorized roads map
-d.mon x0
-d.vect -a myroads
-</pre></div>
-
-
 <H2>SEE ALSO</H2>
 
 <EM>



More information about the grass-commit mailing list