[GRASS-dev] [GRASS GIS] #2919: Use SFD above this threshold - infinity doesn't work in r.stream.extract

GRASS GIS trac at osgeo.org
Sun Oct 29 04:00:41 PDT 2017


#2919: Use SFD above this threshold - infinity doesn't work in r.stream.extract
----------------------+---------------------------------
  Reporter:  PitStop  |      Owner:  grass-dev@…
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  7.2.3
 Component:  Raster   |    Version:  svn-releasebranch72
Resolution:           |   Keywords:  r.stream.extract
       CPU:  x86-64   |   Platform:  MSWindows 8
----------------------+---------------------------------

Comment (by marisn):

 Replying to [comment:10 hellik]:
 > > Seems that "infinity" is not understood by the parser?
 > >
 > >
 https://trac.osgeo.org/grass/browser/grass/branches/releasebranch_7_0/raster/r.stream.extract/main.c#L195
 >
 > yes, it seems to be a parser issue. but why it works then in linux?
 My guess - input.d8cut->answer contains extra chars (CR/LF issue?) and
 thus changing line to read:
 {{{
 if (strncmp(input.d8cut->answer, "infinity", 8) == 0) {
 }}}
 would solve the issue. Still, if it is so, then it is worth to digg deeper
 to see why it is failing as strcmp is used in many modules.

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



More information about the grass-dev mailing list