On Wed, Jan 7, 2015 at 7:27 AM, Takenori KANAI <[email protected]> wrote: > Hello. I'm sorry by my poor English. > > I have analyzed distribution of wild animals using r.drain now > (http://grass.osgeo.org/grass65/manuals/r.drain.html). > > Some examples have been described to "EXAMPLES" in an > online manual. In "EXAMPLES", there are two ways of cost > value though the Cost value of fifith step is 10. In this case, > I do not think that there is a problem because there is a > smaller cost value since six steps even if the fifth step > selects either. > However, by what algorithm has the cell been selected > when there are two or more end points in route > (There is a minimum same cost value as surroundings of cell. )?
r.drain simply follows the lowest cost in the surrounding cells (must be lower than the current cell). If more surrounding cells have the same minimum cost, the first cell encountered is used. Markus M > > Thanks > > > Takenori K. > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
