Loading a database
jhickey at impact1.hpcc.nectec.or.th
Wed Oct 1 11:25:25 EDT 1997
On Sep 30, 1:32pm, Brian Hughes wrote:
> Subject: Loading a database
> I'm just getting GRASS up and running, and I can't seem to get XGRASS to
> recognize any data. I've successfully downloaded, installed, and run
> the XGRASS front end, as well as the simple text-based GRASS, but I
> can't seem to get either to find a database. In XGRASS, I get a nice
> GUI interface, but no data is initially loaded, and when I try to add a
> database, it gives me a dialogue box that won't allow me to type
> anything. Any ideas on what I may be doing wrong? Thanks for your
Xgrass has some screwed up code in it for adding items. However, I have a
workaround that seems to work.
There should be a file called $GIS/etc/databases (if not you can create it)
which contains the information for the grass database directories. Each line in
the file is the complete path to a grass database (eg /usr/people/grass/data).
Simply add a line with the complete path to your grass database and save the
file. Then start xgrass and the path should now appear in the database list.
Then you simply click the database you want and the available locations will
appear. Then click the location you want and the available mapsets appear.
Click the mapset you want and then click accept. The xgrass menubar should pop
up. Then immediately quit xgrass and a dialog box should appear. You can now
save your seesion with an appropriate name and quit. The next time you run
xgrass the session will appear in the session list.
It's not elegant but it beats mucking around with the code. Hope this helps.
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
More information about the grass-user