| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
<em>d.path</em> enables shortest path vector networking. |
| 4 |
Costs may be either line lengths, or attributes saved in a database table. |
| 5 |
Supported are cost assignments for both arcs and nodes, and also different |
| 6 |
in both directions of a vector line. For areas cost will be calculated along |
| 7 |
boundary lines. |
| 8 |
|
| 9 |
<h2>NOTE</h2> |
| 10 |
|
| 11 |
<!-- TODO: apparently d.path does not render into wxGUI? --> |
| 12 |
The user needs to display a vector map before using d.path. If no graphics monitor |
| 13 |
is open, a file <code>map.png</code> is generated in the current directory. |
| 14 |
|
| 15 |
<p> |
| 16 |
The 'from' and 'to' points are entered by mouse into the map displayed in the GRASS monitor, |
| 17 |
or if the <b>coordinates</b> option is used they can be specified non-interactively. |
| 18 |
The actions bound to the mouse buttons are described in the terminal |
| 19 |
window when running the command. |
| 20 |
<p>To calculate shortest path non-interactively and save the path to a new vector |
| 21 |
map, use the <em>v.net.path</em> module. |
| 22 |
|
| 23 |
<h2>EXAMPLES</h2> |
| 24 |
|
| 25 |
Interactive shortest path routing on road network (North Carolina sample dataset): |
| 26 |
<div class="code"><pre> |
| 27 |
g.region vector=roadsmajor -p |
| 28 |
d.vect roadsmajor |
| 29 |
d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02 |
| 30 |
</pre></div> |
| 31 |
|
| 32 |
<p> |
| 33 |
Non-interactive shortest path routing on road network (North Carolina sample dataset): |
| 34 |
<div class="code"><pre> |
| 35 |
d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02 |
| 36 |
</pre></div> |
| 37 |
|
| 38 |
<h2>SEE ALSO</h2> |
| 39 |
|
| 40 |
<em> |
| 41 |
<a href="v.net.path.html">v.net.path</a> |
| 42 |
</em> |
| 43 |
|
| 44 |
<h2>AUTHOR</h2> |
| 45 |
|
| 46 |
Radim Blazek, ITC-Irst, Trento, Italy |