[GRASS-dev] Re: [GRASS GIS] #399: Added "backlink" functionality to r.walk, r.cost & r.drain

GRASS GIS trac at osgeo.org
Sun Dec 21 22:47:23 EST 2008


#399: Added "backlink" functionality to r.walk, r.cost & r.drain
--------------------------+-------------------------------------------------
  Reporter:  cnielsen     |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  Raster       |     Version:  unspecified              
Resolution:               |    Keywords:                           
  Platform:  All          |         Cpu:  All                      
--------------------------+-------------------------------------------------
Comment (by dylan):

 OK Some real comments.

 I have noticed that the patch r.cost gives a segmentation fault if the
 outdir raster is not specified. The cost surface is identical between
 r.cost in SVN and the patched version. The output from the patched r.drain
 (without the new backlink functionality) is identical to the SVN version
 of r.drain.

 Attempting to use the outdir/indir options on r.cost/r.drain does not seem
 to work. I get:
 {{{
  r.drain -d input=cost_new output=cost.drain_new vector_points=end
 indir=cost_dir --o
 Directional drain selected... checking for direction raster
 Direction raster found <cost_dir>
 Dev note: Adapted sites library used for vector points. (module should be
 updated to GRASS 6 vector library)
 ERROR: Raster map (·¿Óõ·>^[[?1;2c not a direction map
 }}}

 Probably related to my crappy hack job getting the patched r.drain to
 compile.

 Another thing. Patched r.cost and r.drain do not seem to be using the
 standard GRASS command line parser, as partial arguments such as 'in'
 (input) are not accepted as legal arguments.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/399#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list