File: r.buffer.lowmem.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (62 lines) | stat: -rw-r--r-- 1,834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<h2>DESCRIPTION</h2>

<em>r.buffer.lowmem</em> creates a new raster map showing buffer
(a.k.a. "distance" or "proximity") zones around all cells that contain
non-NULL category values in an existing raster map. The distances of
buffer zones from cells with non-zero category values are user-chosen.

<p>
This is the low-memory alternative to the
classic <em><a href="r.buffer.html">r.buffer</a></em> module. It is
much slower than the classic version, but will run on massive raster
maps without using a lot of RAM. If your raster map is larger than
32000x32000 cells on a system with 1 GB of RAM, or larger than
90000x90000 cells on a system with 8 GB of RAM, consider using this
module.

<p>
For more info see manual of <em><a href="r.buffer.html">r.buffer</a></em>.

<h2>EXAMPLE</h2>

In the following example, the buffer zones would be (in the default units
of meters): 0-100, 101-200, 201-300, 301-400 and 401-500.

<div class="code"><pre>
r.buffer.lowmem input=roads output=roads.buf distances=100,200,300,400,500
</pre></div>

Result:

<div class="code"><pre>
r.category input=roads.buf

      1       distances calculated from these locations
      2       0-100 meters
      3       100-200 meters
      4       200-300 meters
      5       300-400 meters
      6       400-500 meters
</pre></div>

<h2>SEE ALSO</h2>

<em>
<a href="g.region.html">g.region</a>,
<a href="r.buffer.html">r.buffer</a>,
<a href="r.cost.html">r.cost</a>,
<a href="r.grow.distance.html">r.grow.distance</a>,
<a href="r.mapcalc.html">r.mapcalc</a>,
<a href="r.reclass.html">r.reclass</a>,
<a href="v.buffer.html">v.buffer</a>
</em>

<h2>AUTHORS</h2>

Michael Shapiro, U.S. Army Construction Engineering
Research Laboratory
<br>
James Westervelt, U.S. Army Construction Engineering
Research Laboratory
<br>
Low-memory Python version by Glynn Clements