[GRASS-SVN] r71085 - grass/branches/releasebranch_7_2/vector/v.random

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 13 02:16:01 PDT 2017


Author: neteler
Date: 2017-05-13 02:16:01 -0700 (Sat, 13 May 2017)
New Revision: 71085

Added:
   grass/branches/releasebranch_7_2/vector/v.random/v_random_points_in_polygon.png
Modified:
   grass/branches/releasebranch_7_2/vector/v.random/v.random.html
Log:
v.random manual: example added for generating random points in selected polygons

Modified: grass/branches/releasebranch_7_2/vector/v.random/v.random.html
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.random/v.random.html	2017-05-13 09:15:24 UTC (rev 71084)
+++ grass/branches/releasebranch_7_2/vector/v.random/v.random.html	2017-05-13 09:16:01 UTC (rev 71085)
@@ -103,7 +103,28 @@
 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>
 
 To generate random adjacent polygons, first the centroids are generated as

Copied: grass/branches/releasebranch_7_2/vector/v.random/v_random_points_in_polygon.png (from rev 71084, grass/trunk/vector/v.random/v_random_points_in_polygon.png)
===================================================================
(Binary files differ)



More information about the grass-commit mailing list