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

GRASS GIS trac at osgeo.org
Fri Dec 22 12:06:26 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 mmetz):

 Replying to [comment:5 mmetz]:
 > Replying to [comment:4 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?
 > Right now, I have introduced a new -b flag, but that only makes sense if
 there are 2 possible formats. For more different formats, an option as
 r.fill.dir would make sense.

 I have removed the -b flag and added an option to define the format of the
 input direction map in r71967.
 > Instead of changing lots of existing modules, r.path could be enhanced
 to support more different direction formats, e.g. r.watershed's

 Supported formats are r.watershed's directions, degrees CCW from east and
 bitmask encoded directions. By default, r.path tries to automatically
 detect the format of the input direction map.

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

More information about the grass-dev mailing list