[GRASS-SVN] r35822 - grass/trunk/scripts/v.colors

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


Author: neteler
Date: 2009-02-09 08:01:08 -0500 (Mon, 09 Feb 2009)
New Revision: 35822

Modified:
   grass/trunk/scripts/v.colors/v.colors
   grass/trunk/scripts/v.colors/v.colors.html
Log:
predefined color confuses parameter logic, removed; vector line example added

Modified: grass/trunk/scripts/v.colors/v.colors
===================================================================
--- grass/trunk/scripts/v.colors/v.colors	2009-02-09 13:00:36 UTC (rev 35821)
+++ grass/trunk/scripts/v.colors/v.colors	2009-02-09 13:01:08 UTC (rev 35822)
@@ -63,7 +63,6 @@
 #% type: string
 #% key_desc: style
 #% options: aspect,aspectcolr,bcyr,bgyr,byg,byr,celsius,curvature,differences,elevation,etopo2,evi,grey,grey1.0,grey255,gyr,ndvi,population,precipitation,rainbow,ramp,ryb,ryg,sepia,slope,srtm,terrain,wave,random
-#% answer: bcyr
 #% description: Type of color table
 #% required: no
 #% guisection: Colors

Modified: grass/trunk/scripts/v.colors/v.colors.html
===================================================================
--- grass/trunk/scripts/v.colors/v.colors.html	2009-02-09 13:00:36 UTC (rev 35821)
+++ grass/trunk/scripts/v.colors/v.colors.html	2009-02-09 13:01:08 UTC (rev 35822)
@@ -57,7 +57,23 @@
 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