[GRASS-dev] [GRASS GIS] #2296: r.stream.* - unify some functions (avoid code duplication)

GRASS GIS trac at osgeo.org
Sun May 18 12:08:38 PDT 2014


#2296: r.stream.* - unify some functions (avoid code duplication)
-------------------------+--------------------------------------------------
 Reporter:  hellik       |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  major        |   Milestone:  7.0.0                    
Component:  Raster       |     Version:  svn-trunk                
 Keywords:  r.stream.*   |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [ticket:2296 hellik]:

 > to avoid code duplication, some functions should be unified over these
 modules in a lib(?)

 While we're at it, maybe we should look into unifying all of the different
 "segment" libraries.

 They all do essentially the same thing: provide a 2-dimensional array
 which may be too large to fit into RAM (or, more accurately, into the
 process' address space; if RAM was the issue, mmap() etc would suffice),
 and which can be accessed (more or less) randomly.

 Apart from the "official" segment library (lib/segment), r.proj has its
 own, r.stream.* each have their own, r.grow.distance has something simpler
 (the temporary file is read row-by-row but in reverse).

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



More information about the grass-dev mailing list