Browse Source

line example

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45350 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 14 năm trước cách đây
mục cha
commit
b6f7fab0e3
1 tập tin đã thay đổi với 18 bổ sung2 xóa
  1. 18 2
      vector/v.overlay/v.overlay.html

+ 18 - 2
vector/v.overlay/v.overlay.html

@@ -39,9 +39,25 @@ v.db.connect map=outputmap table=binput.dbf field=3
 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>