[GRASS-dev] Re: [GRASS GIS] #520: r.terraflow/iostream does not respect STREAM_DIR option

GRASS GIS trac at osgeo.org
Wed Apr 8 20:41:59 EDT 2009


#520: r.terraflow/iostream does not respect STREAM_DIR option
---------------------+------------------------------------------------------
  Reporter:  mmetz   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  Raster  |     Version:  svn-develbranch6         
Resolution:          |    Keywords:                           
  Platform:  All     |         Cpu:  All                      
---------------------+------------------------------------------------------
Comment (by glynn):

 Replying to [comment:11 adanner]:

 > Hmm. /var/tmp/flowStream is a file but streamdir->answer is supposed to
 be a directory. "flowStream" should be appended to streamdir->answer. Can
 you use strcat or is there a G_? function for that?

 We normally use sprintf(), e.g.:

 {{{
     char path[GPATH_MAX];
     ...
     sprintf(path, "%s/flowStream", streamdir->answer);
 }}}

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


More information about the grass-dev mailing list