Opened 12 years ago

Closed 9 years ago

#951 closed defect (fixed)

Error querying rasters in wxgui

Reported by: epatton Owned by: grass-dev@…
Priority: normal Milestone: 6.5.0
Component: wxGUI Version: svn-develbranch6
Keywords: query, gui, wxpython Cc:
CPU: x86-64 Platform: Linux

Description

In the North Carolina dataset, load the elevation raster into the Layer Manager and then use the query raster/vector maps tool from the Map Display window to query the elevation raster, which gives the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in
__bootstrap_inner
    self.run()
  File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/go
utput.py", line 108, in run
    moduleInterface = menuform.GUI().ParseCommand(args[0],
show = None)
  File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/me
nuform.py", line 1782, in ParseCommand
    self.grass_task.set_flag(option[2:], True)
  File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/me
nuform.py", line 373, in set_flag
    param = self.get_flag(aFlag)
  File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/me
nuform.py", line 367, in get_flag
    raise ValueError, _("Flag not found: %s") % aFlag
ValueError: Flag not found: q

The full command printed to the Output window is:

r.what --q -f input=elevation@PERMANENT east_north=632293.445122,224363.567073

~ Eric

Change History (5)

comment:1 by martinl, 12 years ago

Seems to work here (6.5, r41121).

comment:2 by epatton, 12 years ago

I'm working with r41157, up to date as of this morning; I checked again, and I still get this error. From the error message, it looks like the --q flag is being passed as a regular flag '-q', generating an error. But then it ought to cause an error with you as well. Strange...

~ Eric.

in reply to:  2 comment:3 by martinl, 12 years ago

Replying to epatton:

I'm working with r41157, up to date as of this morning; I checked again, and I still get this error. From the error message, it looks like the --q flag is being passed as a regular flag '-q', generating an error. But then it ought to cause an error with you as well. Strange...

strange, works for me with r41157

  • start GRASS 6.5, NC
  • add raster map 'elevation'
  • query raster map
r.what --q -f input=elevation@PERMANENT east_north=638009.940358,220864.314115  
638009.940358|220864.314115||128.8005|

Martin

comment:4 by epatton, 12 years ago

Querying the elevation raster in NC also causes the same error for me. There must be something broken in my wxwidgets? I've installed it from the repositories.

I seem to recall a while back there were Ubuntu-specific instructions for getting wxwidgets working correctly on 64-bit systems?

~ Eric.

comment:5 by wenzeslaus, 9 years ago

Resolution: fixed
Status: newclosed

No activity, querying is working, so closing. Reopen/create new if needed.

Note: See TracTickets for help on using tickets.