[GRASS-SVN] r70375 - grass/trunk/vector/v.net.distance
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 15 07:02:25 PST 2017
Author: neteler
Date: 2017-01-15 07:02:25 -0800 (Sun, 15 Jan 2017)
New Revision: 70375
Modified:
grass/trunk/vector/v.net.distance/v.net.distance.html
Log:
v.net.distance manual: add visualization commands to example
Modified: grass/trunk/vector/v.net.distance/v.net.distance.html
===================================================================
--- grass/trunk/vector/v.net.distance/v.net.distance.html 2017-01-15 11:52:45 UTC (rev 70374)
+++ grass/trunk/vector/v.net.distance/v.net.distance.html 2017-01-15 15:02:25 UTC (rev 70375)
@@ -66,8 +66,17 @@
# shortest paths from schools (points in layer 2) to nearest hospitals (points in layer 3)
v.net.distance in=streets_net2 out=schools_to_hospitals flayer=2 to_layer=3
+
+# visualization
+g.region vector=streets_wake
+d.mon wx0
+d.vect streets_wake color=220:220:220
+d.vect schools_wake color=green size=10
+d.vect map=hospitals icon=basic/cross3 size=15 color=black fcolor=red
+d.vect schools_to_hospitals
</pre></div>
+
<h3>Distance between point source of pollution and sample points along streams</h3>
Example with streams of the NC sample data set.
More information about the grass-commit
mailing list