d.path.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <h2>DESCRIPTION</h2>
  2. <em>d.path</em> enables shortest path vector networking.
  3. Costs may be either line lengths, or attributes saved in a database table.
  4. Supported are cost assignments for both arcs and nodes, and also different
  5. in both directions of a vector line. For areas cost will be calculated along
  6. boundary lines.
  7. <h2>NOTE</h2>
  8. The user needs to display a vector map before using d.path. The 'from' and 'to'
  9. points are entered by mouse into the map displayed in the GRASS monitor, or
  10. if the <b>coor</b> option is used they can be specified non-interactively.
  11. The actions bound to the mouse buttons are described in the terminal
  12. window when running the command.
  13. <P>
  14. To calculate shortest path non-interactively and save the path to a new vector
  15. map, use the <em>v.net.path</em> module.
  16. <h2>EXAMPLE</h2>
  17. Interactive shortest path routing on road network (Spearfish region):
  18. <div class="code"><pre>
  19. g.region vector=roads
  20. d.vect roads
  21. d.path roads
  22. </pre></div>
  23. Non-interactive shortest path routing on road network (Spearfish region):
  24. <div class="code"><pre>
  25. d.path -b roads coor=601653.5,4922869.2,593330.8,4924096.6
  26. </pre></div>
  27. <h2>SEE ALSO</h2>
  28. <em>
  29. <a HREF="v.net.path.html">v.net.path</a>
  30. </em>
  31. <h2>AUTHOR</h2>
  32. Radim Blazek, ITC-Irst, Trento, Italy
  33. <p>
  34. <i>Last changed: $Date$</i>