瀏覽代碼

v.net.distance manual: add visualization commands to example

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70375 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 8 年之前
父節點
當前提交
f88755473e
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      vector/v.net.distance/v.net.distance.html

+ 9 - 0
vector/v.net.distance/v.net.distance.html

@@ -66,8 +66,17 @@ v.category in=streets_net2 op=report
 
 
 # shortest paths from schools (points in layer 2) to nearest hospitals (points in layer 3)
 # 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
 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>
 </pre></div>
 
 
+
 <h3>Distance between point source of pollution and sample points along streams</h3>
 <h3>Distance between point source of pollution and sample points along streams</h3>
 
 
 Example with streams of the NC sample data set.
 Example with streams of the NC sample data set.