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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 12 13:01:13 PST 2014


Author: neteler
Date: 2014-01-12 13:01:13 -0800 (Sun, 12 Jan 2014)
New Revision: 58683

Added:
   grass/branches/develbranch_6/vector/v.buffer2/v_buffer_lines.png
Modified:
   grass/branches/develbranch_6/vector/v.buffer2/description.html
Log:
v.buffer manual: example updated to NC; screenshot added

Modified: grass/branches/develbranch_6/vector/v.buffer2/description.html
===================================================================
--- grass/branches/develbranch_6/vector/v.buffer2/description.html	2014-01-12 20:17:20 UTC (rev 58682)
+++ grass/branches/develbranch_6/vector/v.buffer2/description.html	2014-01-12 21:01:13 UTC (rev 58683)
@@ -16,31 +16,37 @@
 
 <h2>EXAMPLES</h2>
 
+All examples are based on the North Carolina sample dataset.
+
 <h3>Buffer around input lines</h3>
 
 <div class="code"><pre>
-v.buffer input=map output=buffer type=line distance=100
+v.buffer input=roadsmajor output=roadsmajor_buffer type=line distance=100
 </pre></div>
 
+<center>
+<img src="v_buffer_lines.png" border="1"><br>
+Buffer of 100m along the "roadsmajor" lines (map subset, original center line
+shown in black)
+</center>
+
 <h3>Circles around input points</h3>
 
 <div class="code"><pre>
-v.buffer input=pointsmap output=circles type=point distance=1000 
+v.buffer input=hospitals output=hospitals_circled type=point distance=1000 
 </pre></div>
 
-<h3>Non-overlapping circles around input points with attribute transfer</h3>
+<h3>Overlapping circles around input points with attribute transfer</h3>
 
 <div class="code"><pre>
-v.buffer input=archsites output=circles type=point distance=200 
+v.buffer input=hospitals output=circles type=point distance=2000
 # change original points to centroids: 
-v.type in=archsites out=archcentroids type=point,centroid 
+v.type in=hospitals out=hospital_centroids type=point,centroid 
 # patch circles and centroids: 
-v.patch in=archcentroids,circles out=circles_db 
-# attach attributes, either use 
-# db.copy ... 
-# or link to the original table: 
-v.db.connect map=circles_db table=archsites field=1 key=cat driver=dbf \
-database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf'
+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 \
+     database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf'
 </pre></div>
 
 
@@ -54,7 +60,6 @@
 <a href="v.db.connect.html">v.db.connect</a>
 </em>
 
-
 <h2>AUTHORS</h2>
 
 Radim Blazek<br>

Added: grass/branches/develbranch_6/vector/v.buffer2/v_buffer_lines.png
===================================================================
(Binary files differ)


Property changes on: grass/branches/develbranch_6/vector/v.buffer2/v_buffer_lines.png
___________________________________________________________________
Added: svn:mime-type
   + image/png



More information about the grass-commit mailing list