[GRASS-dev] Re: [GRASS GIS] #134: Add a flag for subgroup listing in i.group

GRASS GIS trac at osgeo.org
Mon May 19 05:04:08 EDT 2008


#134: Add a flag for subgroup listing in i.group
--------------------------+-------------------------------------------------
  Reporter:  nikos        |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  default      |     Version:  unspecified              
Resolution:               |    Keywords:                           
--------------------------+-------------------------------------------------
Comment (by neteler):

 With fixed i.group, it is possible but too complicated to list subgroups:

 {{{
 location: nc_spm_07
 mapset:   landsat

 i.group mylsat7_2000 sub=mylsat7_2000
 in=lsat7_2000_10,lsat7_2000_20,lsat7_2000_30,lsat7_2000_40,lsat7_2000_50,lsat7_2000_61,lsat7_2000_70,lsat7_2000_80

 i.group -l mylsat7_2000
 group [mylsat7_2000] references the following cellfiles
 -------------
 lsat7_2000_10 in landsat    lsat7_2000_20 in landsat
 lsat7_2000_30 in landsat    lsat7_2000_40 in landsat
 lsat7_2000_50 in landsat    lsat7_2000_61 in landsat
 lsat7_2000_70 in landsat    lsat7_2000_80 in landsat
 -------------
 i.group complete.
 }}}
 -> subgroups missing, not even indicated that they are present in that
 group.
 "g.list subgroup" does not exist.

 {{{
 i.group -l mylsat7_2000 subgroup=mylsat7_2000
 subgroup [mylsat7_2000] of group [mylsat7_2000] references the following
 cellfiles
 -------------
 lsat7_2000_10 in landsat    lsat7_2000_20 in landsat
 lsat7_2000_30 in landsat    lsat7_2000_40 in landsat
 lsat7_2000_50 in landsat    lsat7_2000_61 in landsat
 lsat7_2000_70 in landsat    lsat7_2000_80 in landsat
 -------------
 i.group complete.
 }}}

 Now '''only''' the subgroups are listed. But how to know its name to issue
 this command?

 I see some conceptual problems here. Proposal

 - either list automatically also the subgroup(s) when only indicating
 group=

 - or add a new flag for subgroup(s) listing

 - or enhance g.list to ist subgroup names (but looks moreover confusig to
 me).

 Markus

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


More information about the grass-dev mailing list