[GRASS-SVN] r59992 - grass/branches/develbranch_6/vector/v.buffer2

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 30 09:19:16 PDT 2014


Author: neteler
Date: 2014-04-30 09:19:16 -0700 (Wed, 30 Apr 2014)
New Revision: 59992

Modified:
   grass/branches/develbranch_6/vector/v.buffer2/description.html
Log:
v.buffer manual: examples cleanup

Modified: grass/branches/develbranch_6/vector/v.buffer2/description.html
===================================================================
--- grass/branches/develbranch_6/vector/v.buffer2/description.html	2014-04-30 16:18:23 UTC (rev 59991)
+++ grass/branches/develbranch_6/vector/v.buffer2/description.html	2014-04-30 16:19:16 UTC (rev 59992)
@@ -8,11 +8,16 @@
 
 <h2>NOTES</h2>
 
+Internal buffers for areas can be generated with negative distance 
+values ("inward buffer" or "negative buffer").
 <!-- Q: True?  A: Sure. if two point buffers overlap and are merged, which
      area's attribute is the one to use in the combined area? -->
 Attributes are not transferred due to potential buffer overlap, which
 cannot be resolved automatically.
 
+<p>
+Buffers for lines and areas are generated using the algorithms from
+the GEOS library.
 
 <h2>EXAMPLES</h2>
 
@@ -33,28 +38,31 @@
 <h3>Circles around input points</h3>
 
 <div class="code"><pre>
-v.buffer input=hospitals output=hospitals_circled type=point distance=1000 
+v.buffer input=hospitals output=hospitals_circled type=point distance=2000 
 </pre></div>
 
+<center>
+<img src="v_buffer_points.png" border="1"><br>
+Buffer of 2000m around the "hospitals" points (map subset, original points
+shown in black, new area centroids in red)
+</center>
+
 <h3>Overlapping circles around input points with attribute transfer</h3>
 
 <div class="code"><pre>
-v.buffer input=hospitals output=circles type=point distance=2000
+# copy map to current mapset (for easier DB linking)
+g.copy vect=hospitals,myhospitals
+v.buffer input=myhospitals output=circles type=point distance=2000
 # change original points to centroids: 
-v.type in=hospitals out=hospital_centroids type=point,centroid 
+v.type in=myhospitals out=hospital_centroids type=point,centroid 
 # patch circles and centroids: 
 v.patch in=hospital_centroids,circles out=circles_db 
 # attach attributes, either use db.copy or link to the original table: 
-v.db.connect map=circles_db table=hospitals layer=1 key=cat driver=dbf \
+v.db.connect map=circles_db table=myhospitals layer=1 key=cat driver=dbf \
      database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf'
+v.db.select circles_db
 </pre></div>
 
-<center>
-<img src="v_buffer_points.png" border="1"><br>
-Buffer of 2000m around the "hospitals" points (map subset, original points
-shown in black, new area centroids in red)
-</center>
-
 <h3>Buffer around input areas</h3>
 
 <div class="code"><pre>
@@ -67,6 +75,12 @@
 shown in black)
 </center>
 
+<h2>REFERENCE</h2>
+
+<ul>
+<li><a href="http://trac.osgeo.org/geos">GEOS Library</a></li>
+</ul>
+
 <h2>SEE ALSO</h2>
 
 <em>
@@ -82,6 +96,8 @@
 
 Radim Blazek<br>
 Rewritten by Rosen Matev (with support through the
- Google Summer of Code program 2008)
+ Google Summer of Code program 2008)<br>
+Rewritten by Markus Metz (2011, 2012)
+
 <p>
 <i>Last changed: $Date$</i>



More information about the grass-commit mailing list