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

Sören Gebbert soerengebbert at googlemail.com
Wed Nov 16 03:05:40 EST 2011


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 at gmail.com>:
> Dear soren,
>
> I am using windows xp.
>
> sandip
> 2011/11/15 Sören Gebbert <soerengebbert at googlemail.com>
>>
>> 2011/11/15 Sandip Maity <sandip.stesalit at 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 at googlemail.com>
>> >>
>> >> 2011/11/15 Sandip Maity <sandip.stesalit at 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 at gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> 2011/11/15 Sandip Maity <sandip.stesalit at 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 at lists.osgeo.org
>> >> > http://lists.osgeo.org/mailman/listinfo/grass-dev
>> >> >
>> >
>> >
>
>


More information about the grass-dev mailing list