浏览代码

v.random manual: example added for generating random points in selected polygons

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71084 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 8 年之前
父节点
当前提交
e7d5097d61
共有 2 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      vector/v.random/v.random.html
  2. 二进制
      vector/v.random/v_random_points_in_polygon.png

+ 21 - 0
vector/v.random/v.random.html

@@ -103,6 +103,27 @@ mv map.png vrandom_z.png
 Random points with different X, Y, and Z coordinates
 </center>
 
+<h3>Generating random points in selected polygons</h3>
+
+Generate 3 random points only in selected polygons ("RALEIGH" related ZIP
+code areas):
+<div class="code"><pre>
+v.random restrict=zipcodes_wake output=zipcodes_local_random_n3 npoints=3 \
+  where="ZIPNAME = 'RALEIGH'" -a 
+
+# visualization
+d.mon wx0
+d.vect zipcodes_wake
+d.vect zipcodes_wake fcolor=yellow where="ZIPNAME = 'RALEIGH'"
+d.vect zipcodes_local_random_n3 color=red icon=basic/circle
+</pre></div>
+
+<div align="center" style="margin: 10px">
+<a href="v_random_points_in_polygon.png">
+<img src="v_random_points_in_polygon.png" width="400" height="368" alt="v.random example" border="0">
+</a><br>
+<i>Fixd number of random points generated in selected polygons</i>
+</div>
 
 <h3>Generating random adjacent polygons</h3>
 

二进制
vector/v.random/v_random_points_in_polygon.png