[GRASS-dev] Re: [GRASS GIS] #7: Location wizard: should predefine DB connection for new location

Patton, Eric epatton at nrcan.gc.ca
Thu Mar 13 10:40:25 EDT 2008


Eric:
 >> Thanks for the pointer. I'll hardcode my database paths for now.

Hamish:
> see the db.connect help page example for DBF (I usually just cut and
> paste that to the command line when needed). It accepts variable
> LOCATION, MAPSET, you don't need to hardcode it. (Be sure to keep the
> path with $VARIABLES in single quotes!)

Should each of $GISDABSE, $LOCATION_NAME, and $MAPSET have populated values
on location startup? These variables always remain blank for each location that
I try:

~ >echo $GISDBASE

~ >echo $LOCATION_NAME

~ >echo $MAPSET

~ >

are these variables only available from the shell if I export `g.gisenv` or eval `g.gisenv`
first?

~ Eric.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3237 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20080313/2b7826e3/attachment-0001.bin


More information about the grass-dev mailing list