Details Ticket 2576


Comment | Reply | Take | Open


Serial Number 2576
Subject WARNING: Cannot open driver 'dbname=sabine,'
Area none
Queue grass
Requestors csab7771@uibk.ac.at
Owner none
Status resolved
Last User Contact Fri Aug 27 08:15:32 2004 (4 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Sep 6 16:26:35 2004 (4 yr ago)
Created Mon Aug 16 15:01:54 2004 (4 yr ago)

Transaction History Ticket 2576


Mon, Aug 16 2004 15:01:54    Request created by csab7771@uibk.ac.at  
Return-Path <csab7771@uibk.ac.at>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <1092661308.4120b03c8ed12@web-mail2.uibk.ac.at>
Date Mon, 16 Aug 2004 15:01:48 +0200
From Sabine Grabner <csab7771@uibk.ac.at>
To grass-bugs@intevation.de
Subject WARNING: Cannot open driver 'dbname=sabine,'
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
User-Agent Internet Messaging Program (IMP) 3.2.1
X-Originating-IP 138.232.34.151
X-Forwarded-For
X-Scanned-By MIMEDefang 2.42 at uibk.ac.at
X-Spam-Status No, hits=-3.9 tagged_above=-999.0 required=3.0 tests=BAYES_00, FROM_ENDS_IN_NUMS
X-Spam-Level
hello, 
 
i read data from a pgsql database (db.connect driver=pg database="host=..., 
dbname=rsdb, user=sabine, password=..."), imported them with v.in.ascii where
the attributes are stored to the pgsql database with a different dbname 
(db.connect driver=pg database="host=..., dbname=rsdb, user=sabine, 
password=..." 
 
when i have a look to the database, the data are stored propper. hence, 
writing works. but i can't work with the data (v.surf.idw d.what.vect ... 
nothing works): 
 
GRASS 5.7.0 > echo "..." | db.select -c | v.in.ascii -z \ 
  out=temp200007311800 xcol=1 ycol=2 zcol=3 catcol=0 \  
  columns='x float, y float, z int, parameter int, data float, \ 
  refper int, name varchar(20)' 
WARNING: Vector 'temp200007311800' already exists and will be overwritten. 
WARNING: coor files of vector 'temp200007311800@sabine' is larger than it 
         should be (14 bytes excess). 
Maximum input row length: 69 
Maximum number of columns: 7 
Minimum number of columns: 7 
column: 1  type: double 
column: 2  type: double 
column: 3  type: integer 
column: 4  type: integer 
column: 5  type: double 
column: 6  type: integer 
column: 7  type: string  length: 19 
Building topology ... 
8 primitives registered       
0 areas built      0% 
0 isles built 
Topology was built.                    
Number of nodes     :   8 
Number of primitives:   8 
Number of points    :   8 
Number of lines     :   0 
Number of boundaries:   0 
Number of centroids :   0 
Number of areas     :   0 
Number of isles     :   0 
                                                                            
Mapset <sabine> in Location <oetztal>    
GRASS 5.7.0 > g.list vect 
---------------------------------------------- 
vector files available in mapset sabine: 
temp200007311800  temp200012311800 
 
---------------------------------------------- 
                                                                            
Mapset 
<sabine> in Location <oetztal>                                           GRASS
5.7.0 > v.surf.idw in=temp200007311800 out=temp200007311800 fi=5 
v.surf.idw: 
WARNING: Vector used instead of sites. 
dbname=sabine,: no such driver available 
WARNING: Cannot open driver 'dbname=sabine,' 
ERROR: Cannot open database host=..., by driver dbname=sabine, 
                                                                            
Mapset 
<sabine> in Location <oetztal>                                           GRASS
5.7.0 > g.remove vect=temp200007311800 
REMOVE [temp200007311800] 
dbname=sabine,: no such driver available 
WARNING: Cannot open driver 'dbname=sabine,' 
WARNING: Cannot open database 'host=...,' by driver 
         'dbname=sabine,' 
WARNING: Cannot get info if table 'temp200007311800' linked to vector 
         exists. 
WARNING: Cannot delete vector 
                                                                            
Mapset 
<sabine> in Location <oetztal>                                           GRASS
5.7.0 >  
 
 
sabine 


Mon, Aug 16 2004 22:48:52    Mail sent by guest  
(db.connect driver=pg database="host=..., dbname=rsdb, user=sabine,
password=..."), 

-> try to define that without spaces (according to the man page).

db.connect driver=pg database="host=...,dbname=rsdb,user=sabine,password=..."
[...]

5.7.0 > v.surf.idw in=temp200007311800 out=temp200007311800 fi=5 
v.surf.idw: 
WARNING: Vector used instead of sites. 
dbname=sabine,: no such driver available 
WARNING: Cannot open driver 'dbname=sabine,' 
ERROR: Cannot open database host=..., by driver dbname=sabine, 

As you can see, the comma is included in the name, so GRASS
cannot parse that properly.

Does above suggestion solve the problem?

Markus
Fri, Aug 27 2004 08:15:32    Mail sent by guest  
No response, so we close it.
Mon, Sep 6 2004 16:26:35    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request