[GRASS-dev] [GRASS GIS] #554: wxGUI location wizard: Search in
description with 0 hits
GRASS GIS
trac at osgeo.org
Thu Apr 16 01:15:51 EDT 2009
#554: wxGUI location wizard: Search in description with 0 hits
-----------------------------+----------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: location wizard | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------+----------------------------------------------
Hi,
in the latest 6.4.0svn wingrass build from osgeo4w--
- startup with wxgui.
- Define new location via location wizard.
- by epsg code (list comes up now, great to see that fixed!)
- Search in description: ___ something with no hits, eg 4326 or typo
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
}}}
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.
thanks,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/554>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list