<div dir="ltr"><br><br>On Wed, Nov 7, 2018 at 11:45 PM Rich Shepard <<a href="mailto:rshepard@appl-ecosys.com">rshepard@appl-ecosys.com</a>> wrote:<br>><br>> On Wed, 7 Nov 2018, Rich Shepard wrote:<br>><br>> > Almost all issues are now resolved,<br>><br>>    The issues with specifying database paths and needing a filled cat column<br>> in the stations table have been resolved. v.db.connect shows a valid<br><div>> connection to the database table:</div><div><br></div><div>It's not resolved, and it is not a valid connection:<br></div>><br>> > v.db.connect map=stations -p<br>> Vector map <stations> is connected by:<br>> layer <1/stations> table <stations> in database<br>> </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg> through<br>> driver <pg> with key <cat><br><div><br></div><div>for driver=pg, the database must not be a path, it must be database=willamette-river-hg</div><div><br></div><div>Also, be aware of the differences between db.connect and v.db.connect. The pg database willamette-river-hg must have been established first with db.connect + db.login, only after that you can use v.db.connect which is not needed for newly created vectors.<br></div><div><br></div><div>Markus M<br></div><div>></div>> but, trying to display that map using v.colors in a script still fails to<br>> find the database:<br>><br>> > $HOME/documents/white-papers/geochemistry/willamette-river-mercury/scripts/grass-display-sample-sites.sh<br>> d.vect complete.<br>> d.vect complete.<br>> DBMI-PostgreSQL driver error:<br>> Connection failed.<br>> FATAL:  database "/home/rshepard/data/grassdata/willamette_basin/willamette-river" does not exist<br>> WARNING: Unable to open database<br>>           </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg><br>>           by driver <pg><br>> ERROR: Unable to open database<br>>         </home/rshepard/data/grassdata/willamette_basin/willamette-river-hg><br>>         by driver <pg><br>><br>>    The script:<br>> #!/usr/bin/bash<br>><br>> db.connect driver=pg database=willamette-river-hg<br>> g.region vect=wrb<br>> d.mon start=wx0<br>> d.vect map=wrb col=black fill_col=none<br>> d.vect map=wrb_rivers col=blue fill_col=blue<br>> v.colors map=stations use=attr column=howmany rules=rules.txt rgb_col=bin_col --o<br>><br>> and the color rules file:<br>><br>> 1 231:00:00<br>> 10 231:00:00<br>> 11 89:00:00<br>> 20 89:00:00<br>> 21 231:00:231<br>> 30 231:00:231<br>> 31 231:173:00<br>> 40 231:173:00<br>> 41 231:115:00<br>> 50 231:115:00<br>> 51 00:231:57<br>> 60 00:231:57<br>> 61 115:231:00<br>> 70 115:231:00<br>><br>> TIA,<br>><br>> Rich<br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a></div>