[GRASS-user] v.colors usage

Rich Shepard rshepard at appl-ecosys.com
Tue Nov 6 08:55:44 PST 2018


On Sat, 3 Nov 2018, Rich Shepard wrote:

>  Where have I made the syntactical mistake?

   This is interesting. In the ../scripts directory, along with the grass
script, is a file called 'rules.txt' with perms 644. Adding a rules= option
to the v.colors command removed the rgb_col data type error and replaced it
with two errors: 1) not finding a column in the table and 2) an inability to
read the rules.txt file:

v.colors -c map=stations use=attr column=howmany rules=rules.txt rgb_col=bin_col --o

ERROR: Column <howmany> not found in table <stations>
/home/rshepard/documents/white-papers/geochemistry/willamette-river-mercury/scripts/grass-display-sample-sites.sh:
line 12: /scripts/rules.txt: No such file or directory

   For error 1:

> db.describe tab=stations
   ...
column:howmany
description:
type:INTEGER
len:4
scale:0
precision:0
default:
nullok:yes
select:?
update:?

   For error 2:
$ ll rules.txt 
-rw-r--r-- 1 rshepard users 187 Nov  6 08:34 rules.txt

   What might be going on here with 7.7.svn (r73645)?

Rich





More information about the grass-user mailing list