[GRASS-dev] Re: [GRASS-trac] #9: wxgrass: startup window does't sort locations/mapsets alphabetically

GRASS-trac trac at osgeo.org
Sun Dec 30 19:24:51 EST 2007


#9: wxgrass: startup window does't sort locations/mapsets alphabetically
----------------------+-----------------------------------------------------
  Reporter:  neteler  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  6.3.0                    
 Component:  Python   |     Version:  unspecified              
Resolution:           |    Keywords:                           
----------------------+-----------------------------------------------------
Comment (by cmbarton):

 Replying to [comment:2 cmbarton]:
 > Replying to [comment:1 cmbarton]:
 > > Replying to [ticket:9 neteler]:
 > > > The list of locations/mapsets in the wxgrass GUI is not sorted
 alphabetically. A fix is needed in
 > > > gui/wxpython/gis_set.py to
 > > >
 > > > * sort locations list, but keep mapsets aligned to sorted locations
 (simple |wx.LB_SORT doesn't work here)
 > >
 > > My locations are sorted fine. In fact, the sorting is better in
 wxPython for me than in TclTk, since myLocation and MyLocation sort
 together rather than have all capitalized locations first, with
 "alocation" following "Zlocation".
 > >
 > > How is your systems misbehaving specifically? Which platform and
 wxPython/Python versions are you using?
 > >
 > > >
 > > > * sort mapsets list; but keep PERMANENT on top of mapsets list
 > >
 > > This would be convenient. Currenly, PERMANENT sorts in the P's of
 mapsets. Probably not too hard to fix.
 > >
 > > Michael
 >
 > I fixed the mapset list (at least for my system) so that PERMANENT shows
 up at the top.
 >
 > Michael

 Had some some today and hope that I fixed the sorting issue. I think it
 looks OK on my Mac because I remember something about Mac directories
 being automatically alpha sorted, whereas Linux ones are not.

 So I've forced sorting of the location and mapset lists. Let me know if it
 works. If so, this ticket can be marked as resolved.

 Michael

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/9#comment:3>
GRASS-trac <http://grass.osgeo.org>
Commonly referred to as GRASS, this is a Geographic Information System (GIS) used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization. GRASS is currently used in academic and commercial settings around the world, as well as by many governmental agencies and environmental consulting companies.


More information about the grass-dev mailing list