[GRASS-dev] Re: [GRASS GIS] #381: wxgui: Show attribute data depends on global db connection, not file db connection parameter

GRASS GIS trac at osgeo.org
Sat Nov 29 12:21:03 EST 2008


#381: wxgui: Show attribute data depends on global db connection, not file db
connection parameter
--------------------------+-------------------------------------------------
  Reporter:  mlennert     |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  wxGUI        |     Version:  unspecified              
Resolution:               |    Keywords:                           
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by mlennert):

 Replying to [comment:1 martinl]:
 > Seems to work for me...
 >
 > {{{
 > db.connect -p
 > driver:sqlite
 > database:$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db
 > schema:
 > group:
 > }}}
 >
 > {{{
 > v.db.connect bz -g
 > 1 bz cat /home/martin/grassdata/nc_spm_08/sqlite/sqlite.db sqlite
 > 2 bz1 cat /home/martin/grassdata/nc_spm_08/sqlite/sqlite.db sqlite
 > 3 p cat grass_test pg
 > }}}
 >
 > No problem to display attribute data of 'bz' vector map in wxGUI.
 'db.tables' is called on line 2460 in 'dbm' module with 'driver' and
 'database' parameters. So I don't see any problem. Please correct me.

 IIUC, your map is connected to the database which is the default database
 of the mapset ($GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db - assuming that
 you are in location nc_spm_08 and mapset sqlite). The problem I saw was
 when the map was connected to a database (and driver) different from the
 default setting. I'll try to come up with a reproducible scenario, but
 that won't be before Monday.

 Moritz

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


More information about the grass-dev mailing list