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

GRASS GIS trac at osgeo.org
Fri Jun 26 05:15:27 PDT 2020


#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.8.3
 Component:  Raster   |    Version:  git-releasebranch78
Resolution:           |   Keywords:  r.stream.extract
       CPU:  x86-64   |   Platform:  MSWindows 8
----------------------+---------------------------------

Comment (by hellik):

 some background information:

 https://sourceforge.net/p/mingw/bugs/2358/


 {{{
 [...]
  You are using Microsoft's implementation of scanf(), (because that is all
 that MinGW has ever used for this function, and its siblings), so the
 behaviour is as Microsoft have specified it, (and there appears to be
 nothing in their documentation to suggest how infinities and nans might be
 converted,
 [...]
 You may consider Microsoft's implementation to be broken -- and you may
 well be right -- but good luck with trying to get them to acknowledge
 that, much less fix it.
 }}}

 AFAIR there was also some discussion some times ago how winGRASS (not)
 handling NaN in raster data. (can't find ticket or thread at the moment).

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



More information about the grass-dev mailing list