[GRASS-dev] Calling Add command layer from script

Hi,

There is a function in the wxgui to add a command layer(main GUI–>Add grid or vector labels overlay–>add command layer) .
Now I want to mimic same function ie add command layer via python script. How could I add a command layer via python script ? Someone has some quick idea on this ?

I checked wxgui.py file. It has a function OnAddCommand() , I think this function has a role to play , but I am not sure how to use it .

thanks
sudeep

Hi,

2011/8/23 Sudeep Singh <sudeep495@gmail.com>:

There is a function in the wxgui to add a command layer(main GUI-->Add grid
or vector labels overlay-->add command layer) .
Now I want to mimic same function ie add command layer via python script.
How could I add a command layer via python script ? Someone has some quick
idea on this ?

I checked wxgui.py file. It has a function OnAddCommand() , I think this
function has a role to play , but I am not sure how to use it .

do you really need a command layer? It's better to use directly given
type of map layer (raster, vector, etc.)

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa