[GRASS-user] 'ARNing: Cannot open driver 'dbf"

Hamish hamish_nospam at yahoo.com
Tue Dec 5 23:45:57 EST 2006


Raymond Fu wrote:
>   actually, it is sample from spearfish60.
>   when I type 
>   GRASS 6.1.cvs(spearfish60):~>g.gisenv
>   it display:
>   GISDBASE=/home/xxx
>   LOCATION_NAME=spearfish60
>   MAPSET=user1
>   MONITOR=x1
>   GRASS_GUI=tcltk
>   GRASS 6.1.cvs(spearfish60):~>cd$MAPSET
>   GRASS 6.1.cvs(spearfish60):~>  
>    
>   it change back to current directory.
>    
>   do I need to set something before running the command?


$MAPSET is empty, so "cd$MAPSET" is the same as "cd"
(shell variables vs. GRASS variables)

try:

eval `g.gisenv`
cd "$GISDBASE/$LOCATION_NAME/$MAPSET"
ls dbf/


Hamish




More information about the grass-user mailing list