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

Michael Barton michael.barton at asu.edu
Thu Mar 13 11:23:52 EDT 2008


On Mar 13, 2008, at 7:41 AM, grass-dev-request at lists.osgeo.org wrote:

> Date: Thu, 13 Mar 2008 10:40:25 -0400
> From: "Patton, Eric" <epatton at nrcan.gc.ca>
> Subject: RE: [GRASS-dev] Re: [GRASS GIS] #7: Location wizard: should
> 	predefine	DB connection for new location
> To: <grass-dev at lists.osgeo.org>
> Message-ID:
> 	<CA803441152AAE40935609509953BAD20107604A at s0-ott-x4.nrn.nrcan.gc.ca>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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,

I don't know how you are testing, but these are only available from  
within a GRASS environment. They show up running g.gisenv. They are  
not shell variables.

Michael



More information about the grass-dev mailing list