Quellcode durchsuchen

predefined color confuses parameter logic, removed; vector line example added

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35822 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler vor 16 Jahren
Ursprung
Commit
9c5c28cbb2
2 geänderte Dateien mit 16 neuen und 1 gelöschten Zeilen
  1. 0 1
      scripts/v.colors/v.colors
  2. 16 0
      scripts/v.colors/v.colors.html

+ 0 - 1
scripts/v.colors/v.colors

@@ -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

+ 16 - 0
scripts/v.colors/v.colors.html

@@ -57,6 +57,22 @@ d.mon x0
 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>