Hi All,
i'm trying to call a mapdisp canvas from a wxpython script to show a grass-mapdisplay and load a grass rastermap inside it.
My final target is to use the mouse action and capture the coordinates from the mapcanvas, where the user will release the mouse-sx-button.
In order to achieve this target from a wx script, i was looking in the georeferencer module, but trying to reuse its class : gcpmapdisp.py
i receive the error message :
no module named mapdisp_command
actually i checked in the grass7.0 source svn (rev.: 47601 ) but i can't find it.
please have you any hints/suggestion/example-code to achieve my target ?
thankYou very much!
--Massimo.
Hi,
2011/8/12 Massimo Di Stefano <massimodisasha@gmail.com>:
no module named mapdisp_command
actually i checked in the grass7.0 source svn (rev.: 47601 ) but i can't find it.
please have you any hints/suggestion/example-code to achieve my target ?
this python module has been recently removed, see newly added GRASS
module d.mon for wx-monitor usage.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Hi Martin,
thanks for the hints,
i tried :
d.mon start=wx0
d.rast map=mymap
adding this command in a grass wxpython extension module,
allow me to start a new map-dislpay and visualize a raster map on it.
how can i interact whit this new generated canvas ?
i tried to use “d.where” but seems to me that it is is not connected to the active/selected map-display.
thanks for any hints,
– Massimo.
2011/8/12 Martin Landa <landa.martin@gmail.com>
Hi,
2011/8/12 Massimo Di Stefano <massimodisasha@gmail.com>:
no module named mapdisp_command
actually i checked in the grass7.0 source svn (rev.: 47601 ) but i can’t find it.
please have you any hints/suggestion/example-code to achieve my target ?
this python module has been recently removed, see newly added GRASS
module d.mon for wx-monitor usage.
Martin
–
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Hi,
2011/8/12 massimo di stefano <massimodisasha@gmail.com>:
how can i interact whit this new generated canvas ?
use wxGUI map display functionality...
i tried to use "d.where" but seems to me that it is is not connected to the
active/selected map-display.
d.mon is a quite new creature in G7, `d.where` is not connected to the
wx monitors.
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
Il giorno 12/ago/2011, alle ore 22.24, Martin Landa ha scritto:
Hi,
2011/8/12 massimo di stefano <massimodisasha@gmail.com>:
how can i interact whit this new generated canvas ?
use wxGUI map display functionality...
so, after a sequence of
d.mon start=wx0
d.rast map=map
then is possible to use wx.GUI functionality (api?) to interact whi "wx0" ?
which class i need to import in the python module in order to capture the mouse on-click signal ?
in the wxgui code, where can i find the lines of code that refer to mouse mapcanvas picking ?
thanks for any usefull hints!
--Massimo.
i tried to use "d.where" but seems to me that it is is not connected to the
active/selected map-display.
d.mon is a quite new creature in G7, `d.where` is not connected to the
wx monitors.
.
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa