[GRASS-user] v.colors usage

Markus Metz markus.metz.giswork at gmail.com
Tue Nov 6 12:54:39 PST 2018


On Tue, Nov 6, 2018 at 5:56 PM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
> 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)?

Please check v.db.connect map=stations -p
and
db.connect -p

Is the table attached to the map stations really in the default database?

Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181106/cebd44cf/attachment.html>


More information about the grass-user mailing list