[GRASS-dev] [GRASS GIS] #2109: connect error in replacement of $MAPSET

GRASS GIS trac at osgeo.org
Wed Oct 16 04:53:39 PDT 2013


#2109: connect error in replacement of $MAPSET
------------------------+---------------------------------------------------
 Reporter:  lucadelu    |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  7.0.0                    
Component:  Temporal    |     Version:  svn-trunk                
 Keywords:  connection  |    Platform:  All                      
      Cpu:  All         |  
------------------------+---------------------------------------------------

Comment(by huhabla):

 You can use:
 {{{
 eval `g.gisenv`
 }}}

 To set $GISDBASE, $LOCATION_NAME and $MAPSET

 I will modify the code of t.connect so that instead of the shell variables
 $GISDBASE and $LOCATION_NAME the real path variables are set in the module
 help to reduce confusion.

 t.connect accepts as database argument a string that defines a database
 connection. In case of sqlite this must be a path. t.connect will not
 substitute shell variables itself if they are not set.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2109#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list