[GRASS5] v.in.dwg, Cannot open database

Hamish hamish_nospam at yahoo.com
Fri Nov 5 19:36:18 EST 2004


> >> Anyone recognize this one? I'm using the older OpenDWG Toolkit 
> >> (haven't figured out the newer DWGDirect file structure yet).
> >>
> >> GRASS 5.7.cvs:~ > v.in.dwg input=/Volumes/disk2/data2/ccgis/cc1.dxf
> >> output=Boundary layers=Boundary
> >> WARNING: The vector 'Boundary' already exists and will be
> >> overwritten.
> >> dbmi: db_open_database() not implemented
> >> WARNING: Cannot open database
> >>           '/usr/local/share/grassdata/cecr_utm/ccgis/dbf/'
> >> ERROR: Cannot open database
> >> /usr/local/share/grassdata/cecr_utm/ccgis/dbf/
> >>         by driver dbf
> >> GRASS 5.7.cvs:~ >
> >
> > Does 'db.connect -p' work?
> 
> Gives:
> 
> GRASS 5.7.cvs:~ > db.connect -p
> driver:(null)
> database:(null)

Ok, you need to tell it what kind of database you want the attribute
data to be stored in, e.g.:

db.connect driver=dbf database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/'



Hamish




More information about the grass-dev mailing list