File: description.html

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (64 lines) | stat: -rw-r--r-- 2,077 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<h2>DESCRIPTION</h2>

<em>v.net.path</em> can find shortest path(s) on the vector network.
Costs may be either line lengths, or attributes saved in a database 
table. These attributes values are taken as costs of whole segments. If read 
from the table, arcs' costs may be different in both directions.
Shortest paths are written to output vector file and attached attribute table.
<P>

Nodes can be piped into the program from file or from stdin. The
syntax is as follows:
<pre>
   id start_point_category end_point_category
</pre>

or

<pre>
   id start_point_x start_point_y end_point_x end_point_y
</pre>

Points specified by category must be exactly on network nodes,
while, when specifying coordinates, the next node to a given
coordinate pair is used.

<h2>NOTE</h2>

If the columns 'afcol', 'abcol' and 'ncol' costs are not
specified, the length of network segments is measured and 
zero costs are assumed for nodes.
<P>
When using attributes, the length of segments is not used. To get
more precise results, length should be taken indirectly into account
by attributes. For example, to get the <b>fastest path</b> the columns 
'max_speed' and 'length' are required. The correct fastest path can then 
be found by specifying <tt>afcol=length/max_speed</tt> (pg driver). If needed,
the line length can be calculated and written to the attributes table 
by <em>v.to.db</em>.

<h2>EXAMPLE</h2>

Shortest path from node 9 to 12 (nlayer=1 if no extra table for nodes):

<pre>
    echo "1 9 12" | v.net.path network afcol=forward abcol=backward out=mypath nlayer=1
    d.vect mypath col=red
</pre>


<h2>SEE ALSO</h2>

<em><a HREF="d.path.html">d.path</a></em>,
<em><a HREF="v.net.html">v.net</a></em>,
<em><a HREF="v.net.alloc.html">v.net.alloc</a></em>,
<em><a HREF="v.net.iso.html">v.net.iso</a></em>,
<em><a HREF="v.net.salesman.html">v.net.salesman</a></em>,
<em><a HREF="v.net.steiner.html">v.net.steiner</a></em>,
<em><a HREF="v.to.db.html">v.to.db</a></em>

<h2>AUTHOR</h2>

Radim Blazek, ITC-Irst, Trento, Italy

<p><i>Last changed: $Date: 2005/01/31 09:19:20 $</i>