[QGIS-trac] [Quantum GIS] #1173: db grass modules
Quantum GIS
qgis at qgis.org
Tue Jul 22 11:38:32 EDT 2008
#1173: db grass modules
-----------------------------------------------+----------------------------
Reporter: pcav | Owner: leolami
Type: bug | Status: new
Priority: minor: annoyance or enhancement | Milestone: Version 1.0.0
Component: GRASS | Version: HEAD
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
-----------------------------------------------+----------------------------
To connect to a pg database, the user apparently must:
- run db.connect(.schema) giving:
Driver name (pg)
Database name
"host=faunalia.it,dbname=database_name" (with comma and maybe quotes)
nameoftheschema
- run db.login giving
Database name
host=faunalia.it dbname=prova_leo (with space, no comma, no quotes)
username
password
This seems a bit more complicated than necessary. I suggest:
- to have consistent syntax
- to put each variable in a different space, separating host and db_name
- to merge the two modules into one, so user must enter Driver name,
host, dbname only once.
If you look at:
http://grass.osgeo.org/grass64/manuals/html64_user/grass-pg.html
everything looks more simple:
db.connect driver=pg database="host=myserver.itc.it,dbname=mydb"
db.login user=myname [pass=secret]
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1173>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list