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

Markus Neteler neteler at osgeo.org
Tue Feb 4 10:22:13 PST 2014


On Tue, Feb 4, 2014 at 12:43 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Tue, Feb 4, 2014 at 11:14 AM, Glynn Clements
> <glynn at gclements.plus.com> wrote:
>> Markus Neteler wrote:
>>> For testing, I am not sure how to change
>>> lib/iostream/ami_stream.cpp
>>> in order to use the new function(s). Suggestions?
>>
>>   fd = G_mkstemp(tmp_path, O_RDWR, 0600);
>
> I have attached a patch for this, just to know if I got it right.
> IMHO the change needs to be submitted to get it into the overnight
> winGRASS binaries.

It seems to run nicely on Linux (local patch):

...
-rw------- 1 neteler gis   429391872 Feb  4 17:40 STREAM_baaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:40 STREAM_daaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_eaaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_faaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_gaaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_haaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_iaaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:41 STREAM_jaaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:42 STREAM_kaaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:42 STREAM_laaaaX
-rw------- 1 neteler gis   261873568 Feb  4 17:42 STREAM_maaaaX
...
-rw------- 1 neteler gis   261873568 Feb  4 19:10 STREAM_nvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:10 STREAM_ovaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:10 STREAM_pvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:10 STREAM_qvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_rvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_svaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_tvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_uvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_vvaaaX
-rw------- 1 neteler gis   261873568 Feb  4 19:11 STREAM_wvaaaX
-rw------- 1 neteler gis   225340096 Feb  4 19:12 STREAM_xvaaaX
-rw------- 1 neteler gis 11409293312 Feb  4 19:18 STREAM_caaaaX
...

The job is running on a Desktop PC and saving the STREAM_* files over NFS.

I cannot test the patch on Windows as mentioned.

Markus


More information about the grass-dev mailing list