[GRASS-dev] Re: [GRASS GIS] #547: Raster query in wxGUI
    GRASS GIS 
    trac at osgeo.org
       
    Thu Apr  9 00:43:28 EDT 2009
    
    
  
#547: Raster query in wxGUI
---------------------+------------------------------------------------------
  Reporter:  hcho    |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  7.0.0                    
 Component:  wxGUI   |     Version:  svn-trunk                
Resolution:          |    Keywords:  raster, query            
  Platform:  Linux   |         Cpu:  x86-32                   
---------------------+------------------------------------------------------
Comment (by hcho):
 OK, I think I figured out why it happens. r.what and v.what run in
 GMConsole.cmdThread.RunCmd, and cmdThread takes a snapshot of os.environ
 when it's initialized at goutput.py line 163. No changes made to
 os.environ afterward can be readable by any GRASS modules running in a
 thread. I guess this issue can cause other problems somewhere else.
 Still, I think we shouldn't use GRASS_REGION for r.what.
 Any comments?
-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/547#comment:3>
GRASS GIS <http://grass.osgeo.org>
    
    
More information about the grass-dev
mailing list