[GRASS-dev] [GRASS GIS] #2378: t.list output lines mixed in wxGUI

GRASS GIS trac at osgeo.org
Wed Jul 23 21:05:28 PDT 2014


#2378: t.list output lines mixed in wxGUI
----------------------------------------------+-----------------------------
 Reporter:  wenzeslaus                        |       Owner:  grass-dev@…              
     Type:  defect                            |      Status:  new                      
 Priority:  normal                            |   Milestone:  7.1.0                    
Component:  wxGUI                             |     Version:  svn-trunk                
 Keywords:  temporal, t.list, stdout, stderr  |    Platform:  Linux                    
      Cpu:  Unspecified                       |  
----------------------------------------------+-----------------------------
 When I use `t.list` in wxGUI Command console or from the generated dialog
 (form), I first get the section labels and then I get dataset names, so
 dataset are not printed in the right sections (i.e. mapsets).

 It works OK in the standard command line. First I think that the problem
 is in GUI but it behaves nicely with `g.mlist` (can it be just a lucky
 coincidence that it works?). So, I don't know.

 For example:

 {{{
 t.list columns=id,name
 }}}

 gives:

 {{{
 ----------------------------------------------
 Space time raster datasets with absolute time available in
 mapset <climate_2000_2012>:
 Space time raster datasets with relative time available in
 mapset <NagsHead_series>:
 precip_sum at climate_2000_2012|precip_sum
 tempmean at climate_2000_2012|tempmean
 tempmean_2010 at climate_2000_2012|tempmean_2010
 tempmean_F_summer at climate_2000_2012|tempmean_F_summer
 tempmean_seasonal at climate_2000_2012|tempmean_seasonal
 NagsHead_99_08 at NagsHead_series|NagsHead_99_08
 }}}

 instead of (obtained in command line):

 {{{
 ----------------------------------------------
 Space time raster datasets with absolute time available in mapset
 <climate_2000_2012>:
 precip_sum at climate_2000_2012
 tempmean at climate_2000_2012
 tempmean_2010 at climate_2000_2012
 tempmean_F_summer at climate_2000_2012
 tempmean_seasonal at climate_2000_2012
 Space time raster datasets with relative time available in mapset
 <NagsHead_series>:
 NagsHead_99_08 at NagsHead_series
 }}}

 While

 {{{
 g.mlist -p type=rast
 }}}

 works as expected:

 {{{
 ----------------------------------------------
 raster files available in mapset <NagsHead_series>:
 NH_1999_1m          NH_2002_1m_interp   NH_2005_1m          NH_2008_1m
 NH_2000_1m_interp   NH_2003_1m_interp   NH_2006_1m_interp
 NH_2008_1m_0.05
 NH_2001_1m          NH_2004_1m          NH_2007_1m
 raster files available in mapset <PERMANENT>:
 elev_state_500m
 }}}

 By the way, now I also see that `t.list` lists all mapsets while `g.mlist`
 just search path but this is for different ticket.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2378>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list