[GRASS5] db.connect and auto-creation of dbf/ directory

Michael Barton michael.barton at asu.edu
Thu Apr 21 17:33:25 EDT 2005


I'd vote for g.copy. You need to have the dbf directory in existence for
some modules to put something into. That is, you need it before there is
anything IN it to connect with.

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Markus Neteler <neteler at itc.it>
> Date: Thu, 21 Apr 2005 15:27:20 +0200
> To: grass5 developers list <grass5 at grass.itc.it>
> Subject: [GRASS5] db.connect and auto-creation of dbf/ directory
> 
> Hi,
> 
> when using db.connect to define in a new mapset the DB connection,
> I face following non-feature:
> 
> db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'
> db.connect -p
> driver:dbf
> database:$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/
> schema:(null)
> group:(null)
> 
> So far so nice. But:
> 
> g.copy vect=ammprv,pat_ammprv
> COPY [ammprv at PERMANENT] to current mapset as [pat_ammprv]
> DBMI-DBF driver error:
> Cannot open dbf database: /ssi0/ssi/neteler/grassdata/pat/export/dbf/
> 
> WARNING: Cannot open database '/ssi0/ssi/neteler/grassdata/pat/export/dbf/'
> no database is open
> WARNING: Cannot copy table
> WARNING: Cannot copy ammprv at PERMANENT to current mapset as pat_ammprv
> 
> Yes, I know, that the user has to create this directory first. But
> this could also be done by the program.
> 
> So, where to apply a code modification:
> - db.connect - when using dbf driver?
> - g.copy/g.rename - when using dbf driver ?
> 
> Markus
> 




More information about the grass-dev mailing list