File: d.path.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (46 lines) | stat: -rw-r--r-- 1,554 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
<h2>DESCRIPTION</h2>

<em>d.path</em> enables shortest path vector networking.
Costs may be either line lengths, or attributes saved in a database table.
Supported are cost assignments for both arcs and nodes, and also different
in both directions of a vector line. For areas cost will be calculated along
boundary lines.

<h2>NOTE</h2>

<!-- TODO: apparently d.path does not render into wxGUI? -->
The user needs to display a vector map before using d.path. If no graphics monitor
is open, a file <code>map.png</code> is generated in the current directory.

<p>
The 'from' and 'to' points are entered by mouse into the map displayed in the GRASS monitor,
or if the <b>coordinates</b> option is used they can be specified non-interactively.
The actions bound to the mouse buttons are described in the terminal
window when running the command.
<p>To calculate shortest path non-interactively and save the path to a new vector
map, use the <em>v.net.path</em> module.

<h2>EXAMPLES</h2>

Interactive shortest path routing on road network (North Carolina sample dataset):
<div class="code"><pre>
g.region vector=roadsmajor -p
d.vect roadsmajor
d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
</pre></div>

<p>
Non-interactive shortest path routing on road network (North Carolina sample dataset):
<div class="code"><pre>
d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
</pre></div>

<h2>SEE ALSO</h2>

<em>
<a href="v.net.path.html">v.net.path</a>
</em>

<h2>AUTHOR</h2>

Radim Blazek, ITC-Irst, Trento, Italy