[GRASS-dev] Re: [GRASS-GUI] how i can change the watershed analysis technique?

Mohammed Rashad mohammedrashadkm at gmail.com
Wed Nov 16 00:36:57 EST 2011


I havent done any any grass development in windows. So I dont know how to
setup windows build
youy have osgeo4w to build grass on windows see compiling on windows
http://trac.osgeo.org/grass/wiki/CompileOnWindows


If you are going with window I cant help you :(


On Wed, Nov 16, 2011 at 10:57 AM, Sandip Maity <sandip.stesalit at gmail.com>wrote:

> Dear frnd,
>
> I am not starting any os war.
>
> Anyway i have to delivary the product in windows.
>
> Try to understand my case.
>
> Please tell me how can i compile source using msys.
>
> I used this following command in grass65 -text.
>
> "r.watershed --interface-description> gui.xml"
>
> gui.xml is created but no data with zero bytes.
>
> please help.
>
> thanking you
>
> Sandip
>
>
>
> On Tue, Nov 15, 2011 at 9:46 PM, Mohammed Rashad <
> mohammedrashadkm at gmail.com> wrote:
>
>> IMHO for development it is better to have a Linux or Unix environment. so
>> that you can compile from source modify code again recompile and follow the
>> chain. In windows you have msys shell but you need to do a lot to setup an
>> environment.
>>
>> so switch to *NIX and come back. please dont start os or distro wars.
>> dont ask the list to recommend an OS or linux distro. please...
>>
>>
>> On Tue, Nov 15, 2011 at 12:23 PM, Sandip Maity <sandip.stesalit at gmail.com
>> > wrote:
>>
>>> Dear frnd,
>>>
>>> Thanks for your reply.
>>>
>>> But i am using grass 6.5 -wxpython in windows. I cant able to run
>>> r.watershed.
>>>
>>> Please tell me "how can i get grass shell?"
>>>
>>
>
>>
>>> please help me.
>>>
>>> Sandip
>>>
>>>
>>>
>>>
>>> On Mon, Nov 14, 2011 at 7:17 PM, Mohammed Rashad <
>>> mohammedrashadkm at gmail.com> wrote:
>>>
>>>> you run from grass shell
>>>> r.watershed --interface-description 2> gui.xml
>>>> open gui.xml in an text editor. parse the xml using some xml parsers i
>>>> use pugixml and then create your own gui.
>>>> you can also make a standalone application if you link your application
>>>> with libgrass* libraries
>>>>
>>>> please see below your required xml output genreated by r.watershed
>>>>  <?xml version="1.0" encoding="UTF-8"?>
>>>> <!DOCTYPE task SYSTEM "grass-interface.dtd">
>>>> <task name="r.watershed">
>>>> <description>
>>>> Watershed basin analysis program.
>>>> </description>
>>>> <keywords>
>>>> raster
>>>> </keywords>
>>>> <parameter name="elevation" type="string" required="yes" multiple="no">
>>>> <description>
>>>> Input map: elevation on which entire analysis is based
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="old" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="depression" type="string" required="no" multiple="no">
>>>> <description>
>>>> Input map: locations of real depressions
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="old" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="flow" type="string" required="no" multiple="no">
>>>> <description>
>>>> Input map: amount of overland flow per cell
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="old" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="disturbed.land" type="string" required="no"
>>>> multiple="no">
>>>> <description>
>>>> Input map or value: percent of disturbed land, for USLE
>>>> </description>
>>>> <gisprompt age="old" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="blocking" type="string" required="no" multiple="no">
>>>> <description>
>>>> Input map: terrain blocking overland surface flow, for USLE
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="old" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="accumulation" type="string" required="no"
>>>> multiple="no">
>>>> <description>
>>>> Output map: number of cells that drain through each cell
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="drainage" type="string" required="no" multiple="no">
>>>> <description>
>>>> Output map: drainage direction
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="basin" type="string" required="no" multiple="no">
>>>> <description>
>>>> Output map: unique label for each watershed basin
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="stream" type="string" required="no" multiple="no">
>>>> <description>
>>>> Output map: stream segments
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="half.basin" type="string" required="no" multiple="no">
>>>> <description>
>>>> Output map: each half-basin is given a unique value
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="visual" type="string" required="no" multiple="no">
>>>> <description>
>>>> Output map: useful for visual display of results
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="length.slope" type="string" required="no"
>>>> multiple="no">
>>>> <description>
>>>> Output map: slope length and steepness (LS) factor for USLE
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="slope.steepness" type="string" required="no"
>>>> multiple="no">
>>>> <description>
>>>> Output map: slope steepness (S) factor for USLE
>>>> </description>
>>>> <keydesc>
>>>> <item order="1">name</item>
>>>> </keydesc>
>>>> <gisprompt age="new" element="cell" prompt="raster" />
>>>> <guisection>
>>>> Output_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="threshold" type="integer" required="no" multiple="no">
>>>> <description>
>>>> Input value: minimum size of exterior watershed basin
>>>> </description>
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="max.slope.length" type="float" required="no"
>>>> multiple="no">
>>>> <description>
>>>> Input value: maximum length of surface flow, for USLE
>>>> </description>
>>>> <guisection>
>>>> Input_options
>>>> </guisection>
>>>> </parameter>
>>>> <parameter name="convergence" type="integer" required="no"
>>>> multiple="no">
>>>> <label>
>>>> Convergence factor for MFD (1-10)
>>>> </label>
>>>> <description>
>>>> 1 = most diverging flow, 10 = most converging flow. Recommended: 5
>>>> </description>
>>>> <default>
>>>> 5
>>>> </default>
>>>> </parameter>
>>>> <parameter name="memory" type="integer" required="no" multiple="no">
>>>> <description>
>>>> Maximum memory to be used with -m flag (in MB)
>>>> </description>
>>>> <default>
>>>> 300
>>>> </default>
>>>> </parameter>
>>>> <flag name="f">
>>>> <label>
>>>> Enable MFD flow (default is SFD (D8))
>>>> </label>
>>>> <description>
>>>> SFD: single flow direction, MFD: multiple flow direction
>>>> </description>
>>>> </flag>
>>>> <flag name="4">
>>>> <description>
>>>> Allow only horizontal and vertical flow of water
>>>> </description>
>>>> </flag>
>>>> <flag name="m">
>>>> <label>
>>>> Enable disk swap memory option: Operation is slow
>>>> </label>
>>>> <description>
>>>> Only needed if memory requirements exceed available RAM; see manual on
>>>> how to calculate memory requirements
>>>> </description>
>>>> </flag>
>>>> <flag name="a">
>>>> <label>
>>>> Use positive flow accumulation even for likely underestimates
>>>> </label>
>>>> <description>
>>>> See manual for a detailed description of flow accumulation output
>>>> </description>
>>>> </flag>
>>>> <flag name="overwrite">
>>>> <description>
>>>> Allow output files to overwrite existing files
>>>> </description>
>>>> </flag>
>>>> <flag name="verbose">
>>>> <description>
>>>> Verbose module output
>>>> </description>
>>>> </flag>
>>>> <flag name="quiet">
>>>> <description>
>>>> Quiet module output
>>>> </description>
>>>> </flag>
>>>> </task>
>>>>
>>>> On Mon, Nov 14, 2011 at 7:02 PM, Sandip Maity <
>>>> sandip.stesalit at gmail.com> wrote:
>>>>
>>>>> Dear frnd,
>>>>>
>>>>> I want
>>>>> 1> to keep input option on required screen.
>>>>> 2> to keep only minimum size of exterior basis of input option.
>>>>> 3> to keep first and third parameter of output option.
>>>>> All are in first screen( with required screen) .
>>>>>
>>>>> please suggest me.
>>>>>
>>>>> thanks and regards.
>>>>>
>>>>> Sandip.
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Nov 14, 2011 at 5:30 PM, Mohammed Rashad <
>>>>> mohammedrashadkm at gmail.com> wrote:
>>>>>
>>>>>> what are changes you are planing. pleasse be more secific
>>>>>> and dont be shy to ask on grass-dev
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 14, 2011 at 5:27 PM, Sandip Maity <
>>>>>> sandip.stesalit at gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> Dear frnd
>>>>>>>
>>>>>>> I am planning to change in GUI  for watershed basin analysis.
>>>>>>>
>>>>>>> Actually the GUI asking to many datas. I want to fixed the parameter
>>>>>>> to make easy to handle.
>>>>>>>
>>>>>>> please help me.
>>>>>>>
>>>>>>> thanking for your suggetion and waiting for more suggetion.
>>>>>>>
>>>>>>> sandip
>>>>>>> On Mon, Nov 14, 2011 at 4:36 PM, Mohammed Rashad <
>>>>>>> mohammedrashadkm at gmail.com> wrote:
>>>>>>>
>>>>>>>> move to grass-dev ML.
>>>>>>>> gui is not very active now a days. and be specific when asking
>>>>>>>> questions
>>>>>>>> r.watershed is the module you are looking for...
>>>>>>>>
>>>>>>>> folder is raster/r.watershed . Its not gui in python its C code you
>>>>>>>> need to familiar with and in my opinion should swich to UNIX-like PC for
>>>>>>>> these work and its my own opnion.
>>>>>>>>
>>>>>>>> please dont start operating system wars!!!
>>>>>>>>
>>>>>>>> gui is gnerated from an xml format .Each grass module have
>>>>>>>> interface-description and based on that gui parsers will generate the form
>>>>>>>> structure. What changes are you planning to make.?
>>>>>>>>
>>>>>>>>   On Fri, Nov 11, 2011 at 5:06 PM, Sandip Maity <
>>>>>>>> sandip.stesalit at 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 help me.
>>>>>>>>>
>>>>>>>>> regards.
>>>>>>>>>
>>>>>>>>> Sandip.
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> grass-gui mailing list
>>>>>>>>> grass-gui at lists.osgeo.org
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/grass-gui
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards,
>>>>>>>>    Mohammed Rashad K M
>>>>>>>>    M.S. (By Research) student
>>>>>>>>    Lab for Spatial Informatics
>>>>>>>>    Department of CSE
>>>>>>>>    International Institute of Information Technology
>>>>>>>>    Hyderabad, India
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>    Mohammed Rashad K M
>>>>>>    M.S. (By Research) student
>>>>>>    Lab for Spatial Informatics
>>>>>>    Department of CSE
>>>>>>    International Institute of Information Technology
>>>>>>    Hyderabad, India
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>    Mohammed Rashad K M
>>>>    M.S. (By Research) student
>>>>    Lab for Spatial Informatics
>>>>    Department of CSE
>>>>    International Institute of Information Technology
>>>>    Hyderabad, India
>>>>
>>>>
>>>
>>
>>
>> --
>> Regards,
>>    Mohammed Rashad K M
>>    M.S. (By Research) student
>>    Lab for Spatial Informatics
>>    Department of CSE
>>    International Institute of Information Technology
>>    Hyderabad, India
>>
>>
>


-- 
Regards,
   Mohammed Rashad K M
   M.S. (By Research) student
   Lab for Spatial Informatics
   Department of CSE
   International Institute of Information Technology
   Hyderabad, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20111116/e2f1efdf/attachment-0001.html


More information about the grass-dev mailing list