Re: [GRASS-user] v.colors rules
On Mon, Feb 9, 2009 at 8:14 PM, Paolo Craveri pcrav...@gmail.com wrote: 2009/2/9 Markus Neteler nete...@osgeo.org: Ok now it works. Many thanks Perfect. Fixed in all relevant GRASS versions (SVN). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.colors rules
On Mon, Feb 9, 2009 at 12:12 PM, Paolo Craveri pcrav...@gmail.com wrote: Hi to all How v.colors with option rules works ? Paolo, in line 160 of the script, can you change if [ -n $OPTNAME ] ; then to if [ -z $OPTNAME ] ; then and report back? For me it works like this (maybe it breaks something else?!). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.colors rules
On Mon, 2009-02-09 at 12:12 +0100, Paolo Craveri wrote: Hi to all How v.colors with option rules works ? I tried: cat color.txt 1 red 2 green 3 blue 4 orange 5 purple v.db.select mypoints cat 5 1 4 3 2 v.colors map=mypoints column=cat rules=color.txt ERROR: Pick one of color, rules, or raster options v.colors map=mypoints color=rules column=cat rules=color.txt ERROR: value rules out of range for parameter color v.colors map=mypoints color=rules.txt ERROR: value rules.txt out of range for parameter color Thanks -- Ciao Paolo. It doesn't work for me either! Nikos = # query samples_unburned6 for unique values in the 2nd column v.db.select samples_unburned6 | cut -d| -f2 | sort -u 1 3 332 5 value # v.colors with random (or other) colors works just fine v.colors samples_unburned6 column=value color=random # v.colors rules= or raster fails # first the *rules* cat samples_color.rules -333 255:0:0 -331 0:255:0 1 255:0:0 2 255:255:0 3 0:255:0 5 0:0:255 332 200:200:200 334 0:0:0 # try to use rules= v.colors samples_unburned6 column=value rules=samples_color.rules ERROR: Pick one of color, rules, or raster options # list the colr file for some raster map cat training_6_prefire % -333 334 -333:255:0:0 -331:0:255:0 -331:0:255:0 1:255:0:0 1:255:0:0 2:255:255:0 2:255:255:0 3:0:255:0 3:0:255:0 5:0:0:255 5:0:0:255 332:200 332:200 334:0 # try to use raster= v.colors samples_unburned6 column=value raster=training_6_prefire ERROR: Pick one of color, rules, or raster options == ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.colors rules
On Mon, Feb 9, 2009 at 1:44 PM, Markus Neteler nete...@osgeo.org wrote: On Mon, Feb 9, 2009 at 12:12 PM, Paolo Craveri pcrav...@gmail.com wrote: Hi to all How v.colors with option rules works ? Paolo, in line 160 of the script, can you change forget that. The problem is that the color bcyr is predefined. Try to deleted line 66: #% answer: bcyr and report back. Then it seems to work. I tested color= and rules=. Also added a new example to the manual page. Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.colors rules
2009/2/9 Markus Neteler nete...@osgeo.org: Try to deleted line 66: #% answer: bcyr ok, done, but: v.colors mypoints rules=color.txt column=cat ERROR: Pick one of color, rules, or raster options I commented lines from 163 to 166 (test over options) and works: v.colors mypoints rules=color.txt column=cat v.db.select mypoints cat|GRASSRGB 5|127:0:255 1|255:0:0 4|255:127:0 3|0:0:255 2|0:255:0 ciao -- -- Paolo C. Lat. 44° 39' 11.08'' N Long. 7° 23' 25.26'' E ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] v.colors rules
2009/2/9 Markus Neteler nete...@osgeo.org: Are you sure that you ran make and, if needed, make install afterwards? Markus Ok now it works. Many thanks -- -- Paolo C. Lat. 44° 39' 11.08'' N Long. 7° 23' 25.26'' E ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user