[GRASS-SVN] r45350 - grass/trunk/vector/v.overlay

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 9 09:45:45 EST 2011


Author: neteler
Date: 2011-02-09 06:45:45 -0800 (Wed, 09 Feb 2011)
New Revision: 45350

Modified:
   grass/trunk/vector/v.overlay/v.overlay.html
Log:
line example

Modified: grass/trunk/vector/v.overlay/v.overlay.html
===================================================================
--- grass/trunk/vector/v.overlay/v.overlay.html	2011-02-09 14:45:25 UTC (rev 45349)
+++ grass/trunk/vector/v.overlay/v.overlay.html	2011-02-09 14:45:45 UTC (rev 45350)
@@ -39,12 +39,28 @@
 it! Therefore it is advisable to copy tables from ainput and binput first and
 connect the copied tables to the output map.-->
 
-<h2>EXAMPLE</h2>
+<h2>EXAMPLE POLYGON TO POLYGON UNION</h2>
 <div class="code"><pre>
-v.overlay ainput=lake binput=province output=lakeXprovince
+v.overlay ainput=lake binput=province output=lakeXprovince operator=or
 </pre></div>
 
+<h2>EXAMPLE LINE TO POLYGON CLIPPING</h2>
 
+Using the North Carolina sample dataset, we clip the roads map to the area
+of city of Raleigh:
+<div class="code"><pre>
+g.region vect=zipcodes_wake
+
+# extract Raleigh city
+v.extract in=zipcodes_wake out=raleigh \
+            where="ZIPNAME = 'RALEIGH'"
+
+# clip road network to city polygon:
+v.overlay ainput=roadsmajor atype=line binput=raleigh \
+            out=roadsmajor_raleigh operator=and
+</pre></div>
+
+
 <h2>SEE ALSO</h2>
 
 <em>



More information about the grass-commit mailing list