[GRASS-dev] How can I cange or modify the GUI for watershed analysis?

Dear frnd,

I am not getting “-interface-description”.

Please suggest me how can i get gui.xml?

sandip

On Mon, Nov 14, 2011 at 8:16 PM, Markus Neteler <neteler@osgeo.org> wrote:

(please keep messages on the list)

With --interface-description you get the XML description of the modul.e
This you can parse and then develop your own GUI.

Markus

On Mon, Nov 14, 2011 at 1:00 PM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear frnd

I am planning to change in GUI for watershed basin analysis.

Actually, the GUI asking to many data’s and seems to be complicated to non
technical person. I want to fixed the parameter to make easy to handle this
valuable software…

please help me.

thanking for your reply and waiting for more suggestion.

sandip

On Mon, Nov 14, 2011 at 3:37 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Nov 11, 2011 at 12:37 PM, Sandip Maity
<sandip.stesalit@gmail.com> wrote:

Dear sir,

I want to modify the existing code of watershed analysis.

Please tell me in which file or folder i should go for changing the
code?

I have to change some or modify the form structure.

Please explain what you mean with “form structure”.
In the sense of DEM or in the sense of graphical user interface?

Markus

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear frnd,

I am not getting "-interface-description".

Please suggest me how can i get gui.xml?

r.watershed --interface-description > gui.xml

ML

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

Dear Martin,

I am using WXPYTHON.

So, where I can use this comand “r.watershed–interface-description”

Please help me.

sandip

On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa <landa.martin@gmail.com> wrote:

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear frnd,

I am not getting “-interface-description”.

Please suggest me how can i get gui.xml?

r.watershed --interface-description > gui.xml

ML


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

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear Martin,

I am using WXPYTHON.

So, where I can use this comand "r.watershed--interface-description"

Please help me.

Open a GRASS shell and type:
r.watershed --interface-description

To create a XML file, type:
r.watershed --interface-description > gui.xml

Don't forget the space between r.watershed and --interface-description.

In case you want a WPS XML process description to use with PyXB type:
r.watershed --wps-process-description > r_watershed_process.xml

Soeren

sandip

On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
> Dear frnd,
>
> I am not getting "-interface-description".
>
> Please suggest me how can i get gui.xml?

r.watershed --interface-description > gui.xml

ML

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

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Dear Soren,

I have used grass64 -text to run

“r.watershed --wps-process-description > r_watershed_process.xml”
and
“r.watershed --interface-description > gui.xml”

GUI.XML is created but it is the size of zero byte.

please help.

Sandip

2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear Martin,

I am using WXPYTHON.

So, where I can use this comand “r.watershed–interface-description”

Please help me.

Open a GRASS shell and type:
r.watershed --interface-description

To create a XML file, type:
r.watershed --interface-description > gui.xml

Don’t forget the space between r.watershed and --interface-description.

In case you want a WPS XML process description to use with PyXB type:
r.watershed --wps-process-description > r_watershed_process.xml

Soeren

sandip

On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear frnd,

I am not getting “-interface-description”.

Please suggest me how can i get gui.xml?

r.watershed --interface-description > gui.xml

ML


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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear Soren,

I have used grass64 -text to run

"r.watershed --wps-process-description > r_watershed_process.xml"

Unfortunately "r.watershed --wps-process-description" only works with grass7.

and
"r.watershed --interface-description > gui.xml"

GUI.XML is created but it is the size of zero byte.

Can you see the XML content when executing "r.watershed
--interface-description" in the shell?
BTW, you need to use a unix shell like sh or bash to redirect the
output of the command into a file using ">".

What operation system are you using?

Soeren

please help.

Sandip

2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
> Dear Martin,
>
> I am using WXPYTHON.
>
> So, where I can use this comand "r.watershed--interface-description"
>
> Please help me.

Open a GRASS shell and type:
r.watershed --interface-description

To create a XML file, type:
r.watershed --interface-description > gui.xml

Don't forget the space between r.watershed and --interface-description.

In case you want a WPS XML process description to use with PyXB type:
r.watershed --wps-process-description > r_watershed_process.xml

Soeren

>
> sandip
>
> On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa <landa.martin@gmail.com>
> wrote:
>>
>> 2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
>> > Dear frnd,
>> >
>> > I am not getting "-interface-description".
>> >
>> > Please suggest me how can i get gui.xml?
>>
>> r.watershed --interface-description > gui.xml
>>
>> ML
>>
>> --
>> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>

Dear soren,

I am using windows xp.

sandip

2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear Soren,

I have used grass64 -text to run

“r.watershed --wps-process-description > r_watershed_process.xml”

Unfortunately “r.watershed --wps-process-description” only works with grass7.

and
“r.watershed --interface-description > gui.xml”

GUI.XML is created but it is the size of zero byte.

Can you see the XML content when executing “r.watershed
–interface-description” in the shell?
BTW, you need to use a unix shell like sh or bash to redirect the
output of the command into a file using “>”.

What operation system are you using?

Soeren

please help.

Sandip

2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear Martin,

I am using WXPYTHON.

So, where I can use this comand “r.watershed–interface-description”

Please help me.

Open a GRASS shell and type:
r.watershed --interface-description

To create a XML file, type:
r.watershed --interface-description > gui.xml

Don’t forget the space between r.watershed and --interface-description.

In case you want a WPS XML process description to use with PyXB type:
r.watershed --wps-process-description > r_watershed_process.xml

Soeren

sandip

On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear frnd,

I am not getting “-interface-description”.

Please suggest me how can i get gui.xml?

r.watershed --interface-description > gui.xml

ML


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


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Sandip,
i can't help you in this case. I think Google is your friend to figure
out howto redirect the output of r.watershed --interface-description
into a XML file on the command line.

I'm not sure but maybe the QGIS-GRASS package (www.qgis.org) has a
unix shell included?

You can also try to implement a Python script using subprocess and
stdout fetching to get the XML content when calling r.watershed? As
you already use WXPYTHON this should be no problem? Just make sure the
Python script is executed in the GRASS environment.

Best
Soeren

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:

Dear soren,

I am using windows xp.

sandip
2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>

2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
> Dear Soren,
>
> I have used grass64 -text to run
>
> "r.watershed --wps-process-description > r_watershed_process.xml"

Unfortunately "r.watershed --wps-process-description" only works with
grass7.

> and
> "r.watershed --interface-description > gui.xml"
>
> GUI.XML is created but it is the size of zero byte.

Can you see the XML content when executing "r.watershed
--interface-description" in the shell?
BTW, you need to use a unix shell like sh or bash to redirect the
output of the command into a file using ">".

What operation system are you using?

Soeren

>
> please help.
>
> Sandip
>
>
>
> 2011/11/15 Sören Gebbert <soerengebbert@googlemail.com>
>>
>> 2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
>> > Dear Martin,
>> >
>> > I am using WXPYTHON.
>> >
>> > So, where I can use this comand "r.watershed--interface-description"
>> >
>> > Please help me.
>>
>> Open a GRASS shell and type:
>> r.watershed --interface-description
>>
>> To create a XML file, type:
>> r.watershed --interface-description > gui.xml
>>
>> Don't forget the space between r.watershed and --interface-description.
>>
>> In case you want a WPS XML process description to use with PyXB type:
>> r.watershed --wps-process-description > r_watershed_process.xml
>>
>> Soeren
>>
>> >
>> > sandip
>> >
>> > On Tue, Nov 15, 2011 at 4:26 PM, Martin Landa
>> > <landa.martin@gmail.com>
>> > wrote:
>> >>
>> >> 2011/11/15 Sandip Maity <sandip.stesalit@gmail.com>:
>> >> > Dear frnd,
>> >> >
>> >> > I am not getting "-interface-description".
>> >> >
>> >> > Please suggest me how can i get gui.xml?
>> >>
>> >> r.watershed --interface-description > gui.xml
>> >>
>> >> ML
>> >>
>> >> --
>> >> Martin Landa <landa.martin gmail.com> *
>> >> http://geo.fsv.cvut.cz/~landa
>> >
>> >
>> > _______________________________________________
>> > grass-dev mailing list
>> > grass-dev@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/grass-dev
>> >
>
>