[GRASS-SVN] r71084 - grass/trunk/vector/v.random
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 13 02:15:24 PDT 2017
Author: neteler
Date: 2017-05-13 02:15:24 -0700 (Sat, 13 May 2017)
New Revision: 71084
Added:
grass/trunk/vector/v.random/v_random_points_in_polygon.png
Modified:
grass/trunk/vector/v.random/v.random.html
Log:
v.random manual: example added for generating random points in selected polygons
Modified: grass/trunk/vector/v.random/v.random.html
===================================================================
--- grass/trunk/vector/v.random/v.random.html 2017-05-12 13:28:31 UTC (rev 71083)
+++ grass/trunk/vector/v.random/v.random.html 2017-05-13 09:15:24 UTC (rev 71084)
@@ -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
Added: grass/trunk/vector/v.random/v_random_points_in_polygon.png
===================================================================
(Binary files differ)
Property changes on: grass/trunk/vector/v.random/v_random_points_in_polygon.png
___________________________________________________________________
Added: svn:mime-type
+ image/png
More information about the grass-commit
mailing list