Firstly, I put grass-dev into CC. We should switch the thread to
grass-dev because this is dev question.
Secondly, I have no idea how d.where should work, so I'm not able to
help much. I think that you should specify what you expect from
d.where in wxGUI. Also compare your ideas to exiting wxGUI functions,
e.g. there is a right-click context menu with "Copy coordinates to
clipboard" function.
Anyway, places in code to start:
lmgr/frame.py: RunDisplayCmd
mapdisp/mapwindow.py: OnCopyCoordinates
mapdisp/mapwindow.py: RegisterMouseEventHandler
(and its usage in gui_core/gselect.py)
Vaclav
On 27 November 2012 08:14, SWAPAN GHOSH <swap.ghsh@gmail.com> wrote:
Dear All,
Please see the Windows error for d.where as given below--
Actually I would like to redirect the output of d.where to another command
like r.what
in wxGUI you can use 'Query raster map' tool from Map Display.
In GRASS 7 the GUI dialog of commands, which have coordinates as
input, allows also to pick up the coordinates interactively (see the
screenshot [1]). This functionality has been implemented by Stepan
Turek as one of the results of the GSoC 2012 project [2].
Firstly, I put grass-dev into CC. We should switch the thread to
grass-dev because this is dev question.
Secondly, I have no idea how d.where should work, so I’m not able to
help much. I think that you should specify what you expect from
d.where in wxGUI. Also compare your ideas to exiting wxGUI functions,
e.g. there is a right-click context menu with “Copy coordinates to
clipboard” function.
Anyway, places in code to start:
lmgr/frame.py: RunDisplayCmd
mapdisp/mapwindow.py: OnCopyCoordinates
mapdisp/mapwindow.py: RegisterMouseEventHandler
(and its usage in gui_core/gselect.py)