d.path.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>To calculate shortest path non-interactively and save the path to a new vector
  14. map, use the <em>v.net.path</em> module.
  15. <h2>EXAMPLE</h2>
  16. Interactive shortest path routing on road network (Spearfish region):
  17. <div class="code"><pre>
  18. g.region vector=roads
  19. d.vect roads
  20. d.path roads
  21. </pre></div>
  22. Non-interactive shortest path routing on road network (Spearfish region):
  23. <div class="code"><pre>
  24. d.path -b roads coor=601653.5,4922869.2,593330.8,4924096.6
  25. </pre></div>
  26. <h2>SEE ALSO</h2>
  27. <em>
  28. <a href="v.net.path.html">v.net.path</a>
  29. </em>
  30. <h2>AUTHOR</h2>
  31. Radim Blazek, ITC-Irst, Trento, Italy
  32. <p><i>Last changed: $Date$</i>