[GRASS-dev] [GRASS GIS] #951: Error querying rasters in wxgui

#951: Error querying rasters in wxgui
----------------------------------+-----------------------------------------
Reporter: epatton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: query, gui, wxpython | Platform: Linux
      Cpu: x86-64 |
----------------------------------+-----------------------------------------
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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951&gt;
GRASS GIS <http://grass.osgeo.org>

#951: Error querying rasters in wxgui
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: query, gui, wxpython
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by martinl):

Seems to work here (6.5, r41121).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#951: Error querying rasters in wxgui
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: query, gui, wxpython
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by 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...

~ Eric.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#951: Error querying rasters in wxgui
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: query, gui, wxpython
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:2 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#951: Error querying rasters in wxgui
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: query, gui, wxpython
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by epatton):

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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#951: Error querying rasters in wxgui
----------------------+-----------------------------------------------------
  Reporter: epatton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: query, gui, wxpython
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by wenzeslaus):

  * status: new => closed
  * resolution: => fixed

Comment:

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/951#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>