MapWindow 4 - Plugins : MapWindow Discussion Forum
Hello everyone, I've been searching for a way to replicate Arcview's flow length method (http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Flow%20Length) for a plugin I am developing; more specifically calculating the DOWNSLOPE distance along the flow path, from each cell
Downstream Flow Length
Posted by: sschung ()
Date: December 17, 2009 09:41AM

Hello everyone,

I've been searching for a way to replicate Arcview's flow length method (http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Flow%20Length) for a plugin I am developing; more specifically calculating the DOWNSLOPE distance along the flow path, from each cell to a sink or outlet while using a WEIGHT RASTER as well. It doesn't seem like there are any built in functions in Mapwingeoproc.hydrology for doing this if I'm not mistaken (there only seems to be methods for calculating the UPSLOPE flow lengths).

Are there are any preexisting plugins or alternate ways of doing this? Any help would be greatly appreciated.

Thank you,
Sang

Options: ReplyQuote
Re: Downstream Flow Length
Posted by: enrico chiaradia ()
Date: December 18, 2009 01:53AM

Have a look at watershed delineation plugin. You can call Taudem function or reuse the code to build yours.

Options: ReplyQuote
Re: Downstream Flow Length
Posted by: sschung ()
Date: December 18, 2009 08:43AM

Thank you for the suggestion. I've actually been referencing Taudem and the watershed delineation plugin and haven't been able to find a way to do the downslope flow lengths with a weight grid. If I'm mistaken, could you please tell me the specific function I should use (or a sample code, preferably in VB.net) from taudem/watershed delineation? Thanks again.

Options: ReplyQuote
Re: Downstream Flow Length
Posted by: enrico chiaradia ()
Date: December 21, 2009 06:16AM

Maybe there is no direct implementation of your request and so you choose between two options:
1) add a request to Mantis bug tracer [bugs.mapwindow.org] (I'm also interested in it but I've no time to implement it at the moment)
2) try to build your function: you have to see the tardemlib code here [svn.mapwindow.org] (e.g. look for 'dists' function).
The algorithm is implemented recursively, I hope it will be of some help.

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: