#1788: r.viewshed binary flag (-b) not working correctly
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.viewshed | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
The binary flag for r.viewshed makes viewed areas = 1 but unviewed areas =
null(). Unviewed areas are supposed to be = 0.
Replying to [comment:2 annakrat]:
> Replying to [comment:1 annakrat]:
> > I attached a patch for this. If there are no objections, I will commit
it.
>
> Done in r62467. The failing tests should be fixed tomorrow, I will
backport it then.
Done in 62497. Tests are running fine, so I take it as fixed.
Reopened because it works only when using internal memory. When using
external memory mode, binary output gives 1 and nulls. It doesn't seem to
be so easily fixable as the in-memory case, because I can't find an easy
way to find out which cell should be 0 and which should be null.