<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><br class="Apple-interchange-newline"> </div><br><div><div>On Aug 5, 2008, at 7:34 PM, <<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgba(0, 0, 0, 0.498039); "><b>From:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">Laura Toma <<a href="mailto:ltoma@bowdoin.edu">ltoma@bowdoin.edu</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgba(0, 0, 0, 0.498039); "><b>Date:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">August 5, 2008 7:34:15 PM GMT-07:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgba(0, 0, 0, 0.498039); "><b>To:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">Paul Kelly <<a href="mailto:paul-grass@stjohnspoint.co.uk">paul-grass@stjohnspoint.co.uk</a>>,<span class="Apple-converted-space"> </span><a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgba(0, 0, 0, 0.498039); "><b>Cc:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; ">Will <<a href="mailto:willster3021@gmail.com">willster3021@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family: Helvetica; font-size: medium; color: rgba(0, 0, 0, 0.498039); "><b>Subject:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica; font-size: medium; "><b>[GRASS-dev] viewshed and iostream issues</b><br></span></div><br><br><br>Viewshed does not immediately compile with the iostream library in grass. Over the last years there were a few changes to it, but were never merged them into the grass trunk because they did not seem important enough at the time. Now that both viewshed and terraflow use the same library, I don't think that it makes sense to try to make viewshed compile with an older version; instead, I would rather update the library. I looked over the grass svn logs and the only significant changes to iostream that I could see are the following:<br><br>1. #ifdef __MINGW32__ (windows compatibility)<br>2. char* replaced with std::string (Andy Danner's patch a few weeks ago)<br>(is there anything else?)<br><br>I have merged these changes into my most recent version of iostream, which I am attaching; it is split into headers (include_iostream.tar), and cc files (lib_iostream.tar). If you place them into grass_trunk/include/iostream/ and grass_trunk/lib/iostream/ respectively, the library, terraflow and viewshed all compile and run (macosx 10.4).<br><br>This is a start to get r.viewshed to compile and run and get some feedback. If the general opinion is to keep the library unchanged, I guess we'll have to modify viewshed, which is doable, though not particularly exciting.<br><br><br>-Laura<br></span></blockquote></div><br><div>Laura, Will, and Paul,</div><div><br></div><div>I'm very much looking forward to being able to test out this new module.</div><div><br></div><div>Michael</div></body></html>