r.buffer.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <h2>DESCRIPTION</h2>
  2. <em>r.buffer</em> creates a new raster map layer showing
  3. buffer (a.k.a. "distance" or "proximity") zones around all
  4. cells that contain non-NULL category values in an existing
  5. raster map layer. The distances of buffer zones from cells
  6. with non-zero category values are user-chosen. Suppose,
  7. for example, that you want to place buffer zones around
  8. roads. This program could create the raster map layer
  9. shown below on the right based on road information
  10. contained in the raster map layer shown on the left.
  11. <div class="code"><pre>
  12. 000000000000000000000000 222233333333333333444444
  13. 111000000000000000000000 111222222222223333333333
  14. 000111111111100000000000 222111111111122223333333
  15. 000000001000011100000000 332222221222211122222222
  16. 000000001000000011111111 333333321233222211111111
  17. 000000001000000000000000 433333321233333222222222
  18. 000000001000000000000000 444443321233333333333333
  19. 000000001000000000000000 444443321233443333333333
  20. 000000001000000000000000 444443321233444444444444
  21. Category 0: No roads
  22. Category 1: Road location
  23. Category 2: Buffer Zone 1 around roads
  24. Category 3: Buffer Zone 2 around roads
  25. Category 4: Buffer Zone 3 around roads
  26. </pre></div>
  27. <br>
  28. <h2>NOTES</h2>
  29. The user has the option of identifying up to 250 continuous zones.
  30. The zones are identified by specifying the upper limit of each desired zone
  31. (<em>r.buffer</em> assumes that <tt>0</tt> is the starting point).
  32. ("Continuous" is used in the sense that each category
  33. zone's lower value is the previous zone's upper value. The
  34. first buffer zone always has distance <tt>0</tt> as its lower
  35. bound.) Buffer distances can be specified using one of five units with the <em>
  36. units</em> parameter: <em>meters, kilometers, feet, miles</em>, and <em>nautmiles</em>
  37. (nautical miles).
  38. <p>
  39. <!-- ??? is this the real method used or some ancient option ??? -->
  40. Distances from cells containing the user-specified category values
  41. are calculated using the "fromcell" method. This method locates each
  42. cell that contains a category value from which distances are to be
  43. calculated, and draws the requested distance rings around
  44. them. This method works very fast when there are few cells
  45. containing the category values of interest, but works
  46. slowly when there are numerous cells containing the
  47. category values of interest spread throughout the area.
  48. <p>
  49. <em>r.buffer</em> measures distances from center of cell to
  50. center of cell using Euclidean distance measure for
  51. planimetric locations (like UTM) and using ellipsoidal
  52. geodesic distance measure for latitude/longitude locations.
  53. <p>
  54. <em>r.buffer</em> calculates distance zones from all cells having non-NULL
  55. category values in the <em>input</em> map. If the user wishes to calculate
  56. distances from only selected <em>input</em> map layer
  57. category values, the user should run (for example)
  58. <em><a href="r.reclass.html">r.reclass</a></em> prior to
  59. <em>r.buffer</em>, to reclass all categories from which distance zones
  60. are not desired to be calculated into category NULL.
  61. <p>
  62. The <b>-z</b> flag can be used to ignore raster values of zero instead of NULL
  63. values in the input raster map.
  64. <p>
  65. <h2>EXAMPLE</h2>
  66. In the following example, the buffer zones would be (in the default units
  67. of meters): 0-100, 101-200, 201-300, 301-400 and 401-500.
  68. <br>
  69. <div class="code"><pre>
  70. <b>r.buffer input=</b>roads <b>output=</b>roads.buf <b>distances=</b>100,200,300,400,500
  71. </pre></div>
  72. Result:
  73. <div class="code"><pre>
  74. <b>r.category input=</b>roads.buf
  75. 1 distances calculated from these locations
  76. 2 0-100 meters
  77. 3 100-200 meters
  78. 4 200-300 meters
  79. 5 300-400 meters
  80. 6 400-500 meters
  81. </pre></div>
  82. <h2>SEE ALSO</h2>
  83. <em>
  84. <a href="g.region.html">g.region</a><br>
  85. <a href="r.cost.html">r.cost</a><br>
  86. <a href="r.mapcalc.html">r.mapcalc</a><br>
  87. <a href="r.reclass.html">r.reclass</a><br>
  88. <a href="v.buffer.html">v.buffer</a>
  89. </em>
  90. <h2>AUTHORS</h2>
  91. Michael Shapiro, U.S. Army Construction Engineering
  92. Research Laboratory
  93. <br>
  94. James Westervelt, U.S. Army Construction Engineering
  95. Research Laboratory
  96. <p><i>Last changed: $Date$</i>