[GRASS-dev] [GRASS GIS] #2267: t.list doesn't respect search path

GRASS GIS trac at osgeo.org
Fri May 2 20:48:26 PDT 2014


#2267: t.list doesn't respect search path
--------------------------+-------------------------------------------------
  Reporter:  martinl      |       Owner:  grass-dev@…              
      Type:  defect       |      Status:  closed                   
  Priority:  normal       |   Milestone:  7.0.0                    
 Component:  Temporal     |     Version:  svn-trunk                
Resolution:  fixed        |    Keywords:  t.list, search path      
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------

Comment(by annakrat):

 I got confused from all the different functions for listing datasets.
 There are currently also
 [http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/temporal/gui_support.py#L21
 tgis.tlist_grouped] and
 [http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/temporal/gui_support.py#L81
 tgis.tlist]. These don't respect search path.

 Function `get_dataset_list` does not give you the right order of mapsets
 because it returns unordered dictionary. Perhaps ordered dict (I think
 it's in pygrass) or some tuples would be better? This function could also
 give you the option not to respect the search path (maybe useful for data
 catalog). `tgis.tlist` could then be a higher level wrapper, call
 `get_dataset_list` and return the dataset names instead of sql rows. I
 would then use it in g.gui.animation/timeline. `tgis.tlist_grouped` would
 then call `tgis.tlist` and group names by mapsets which is used in the
 selection widget. Does it sound too complicated?

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



More information about the grass-dev mailing list