[GRASS-dev] [GRASS GIS] #3468: r.drain: replace with new r.path, support multiple directions

GRASS GIS trac at osgeo.org
Wed Dec 20 19:50:21 PST 2017


#3468: r.drain: replace with new r.path, support multiple directions
--------------------------+---------------------------------
  Reporter:  mmetz        |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.5.0
 Component:  Raster       |    Version:  svn-releasebranch74
Resolution:               |   Keywords:  r.drain
       CPU:  All          |   Platform:  All
--------------------------+---------------------------------

Comment (by wenzeslaus):

 Replying to [comment:3 mmetz]:
 > That would be a substantial change because other modules (all
 r.stream.*) depend on the direction output of r.watershed.

 Then I guess we have 3 standards and all make sense. Should all the
 modules have flags, or perhaps an option as r.fill.dir, to set the desired
 direction encoding/format?

 > Implemented in r71962 (added r.path) and r71963 (updated r.cost/r.walk).

 Thank you.

 With the naming, I hit an issues with r.path versus r.patch, but I don't
 see any better alternatives. As for the functionality, r.spreadpath now
 comes to my mind, but I don't know right now the relation of backlinks
 there and direction from neighbor and to neighbor.

 In r71964 I added an image and extended the example, anybody please
 review.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3468#comment:4>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list