[GRASS-dev] r.viewshed fails on large raster: temp file already exists

Markus Neteler neteler at osgeo.org
Sat Feb 1 16:58:31 PST 2014


On Sat, Feb 1, 2014 at 11:17 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On 1/17/14, Glynn Clements <glynn at gclements.plus.com> wrote:
>>
>> Markus Neteler wrote:
>>
>>> could anyone please implement G_mktemp() following the suggestions in
>>> the ticket (there is a link to a gfortran patch included which might
>>> be just "perfect":
>>
>> I've added lib/gis/mkstemp.c, which needs testing and feedback.
>
> I have used your explanations to add doxygen style documentation to
> the file, see r58834.

Now also online:
http://grass.osgeo.org/programming7/mkstemp_8c.html

> One compiler issue remains:
>
> mkstemp.c: In function 'G_mkstemp_fp':
> mkstemp.c:164:5: warning: suggest parentheses around comparison in
> operand of '&' [-Wparentheses]
>      const char *fmode = (flags & O_ACCMODE == O_RDWR)
>      ^
>
> For testing, I am not sure how to change
> lib/iostream/ami_stream.cpp
> in order to use the new function(s). Suggestions?

Markus


More information about the grass-dev mailing list