[GRASS-dev] Python and WX Workspace

Hi All,

i'm working on a SOC project to have grass-ossimplanet interaction.

Actually i'm using some function provided from the python grass interface

i'm now tring to see if it is possible to retrieve from python, the list of layers loaded in the workspace,

do you know if is it possible ?

if no interactive function is avaiable, maybe i can try to work on workspace.gxw ? can i find a schema for it ?

any suggestion / feedback about the code is really welcome.

thanks,

Massimo Di Stefano.

Hi,

2009/6/13 Massimo Di Stefano <massimodisasha@gmail.com>:

i'm now tring to see if it is possible to retrieve from python, the list of
layers loaded in the workspace,
do you know if is it possible ?

it's possible, see

http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_modules/workspace.py#L146

if no interactive function is avaiable, maybe i can try to work on
workspace.gxw ? can i find a schema for it ?

What do you mean by schema?

Martin

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

Hi,

2009/6/14 Martin Landa <landa.martin@gmail.com>:

i'm now tring to see if it is possible to retrieve from python, the list of
layers loaded in the workspace,
do you know if is it possible ?

it's possible, see

http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_modules/workspace.py#L146

or better

http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/gui_modules/workspace.py#L670

M.

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