[GRASS-dev] Re: [GRASS GIS] #554: wxGUI location wizard: Search in description with 0 hits

GRASS GIS trac at osgeo.org
Sat Apr 18 08:16:03 EDT 2009


#554: wxGUI location wizard: Search in description with 0 hits
---------------------------+------------------------------------------------
  Reporter:  hamish        |       Owner:  martinl        
      Type:  defect        |      Status:  assigned       
  Priority:  major         |   Milestone:  6.4.0          
 Component:  wxGUI         |     Version:  6.4.0 RCs      
Resolution:                |    Keywords:  location wizard
  Platform:  MSWindows XP  |         Cpu:  x86-32         
---------------------------+------------------------------------------------
Changes (by martinl):

  * status:  new => assigned
  * owner:  grass-dev at lists.osgeo.org => martinl
 * cc: grass-dev at lists.osgeo.org (added)

Comment:

 Replying to [ticket:554 hamish]:
 > - Search in description: ___ something with no hits, eg 4326 or typo

 you search in the description, not in the codes - so you get empty list.
 Use "Reload EPGS codes" to reload the list.

 > At this point the list of codes is empty and the following error message
 appears on the DOS console window:
 >
 > {{{
 > Traceback (most recent call last):
 >  File
 "C:\OSGeo4W\apps\grass\grass-6.4.0svn\etc\wxpython\gui_modules\location_wizard.py",
 line 1365, in OnSearch
 >     self.epsgcode = self.epsglist.Search(index=1, str=value)[0]
 > TypeError: 'NoneType' object is unsubscriptable
 > }}}

 Fixed in r36775.

 > so I guess two things are needed:
 > - only try to grab epsg code to fill in "EPSG code: ____" box if >=1
 result was found, and
 > - automatically reload EPSG codes before each new search (if 0 hits then
 the 'search in desc' box is unusable until you press the Reload EPSG Codes
 button.

 Done in r36776.

 M.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/554#comment:4>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list