Skip to content
Prev 24244 / 29559 Next

How to reduce the buffering time with the function "buffer" (package raster)

Five million cells isn't all that many, how slow is too slow? Buffering a
raster of about 10 million cells on my laptop takes on the order of 20
seconds or so for a binary raster. Is it possible that you're fighting
memory problems?

In the past when doing multiple ring buffers I've found it faster to
calculate a distance-to raster first, and then apply multiple logical
comparisons on the distance raster.  I don't know if this applies to your
situation or not but it's one trick that might help.

Sincerely,
Forrest
On Mon, Apr 11, 2016 at 10:58 AM Nelly Reduan <nell.redu at hotmail.fr> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160411/159ec27b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 12209 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160411/159ec27b/attachment.png>
Message-ID: <CAEBQMM=QON_LKAC8z9UMvUwBSu3+q3EcJzNKPkmn==jvS+9cCQ@mail.gmail.com>
In-Reply-To: <CY1PR0501MB1772C3ADEB76DE9BF66FA42299940@CY1PR0501MB1772.namprd05.prod.outlook.com>