d.path.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <!-- TODO: apparently d.path does not render into wxGUI? -->
  9. The user needs to display a vector map before using d.path. If no graphics monitor
  10. is open, a file <tt>map.png</tt> is generated in the current directory.
  11. <p>
  12. The 'from' and 'to' points are entered by mouse into the map displayed in the GRASS monitor,
  13. or if the <b>coordinates</b> option is used they can be specified non-interactively.
  14. The actions bound to the mouse buttons are described in the terminal
  15. window when running the command.
  16. <p>To calculate shortest path non-interactively and save the path to a new vector
  17. map, use the <em>v.net.path</em> module.
  18. <h2>EXAMPLES</h2>
  19. Interactive shortest path routing on road network (North Carolina sample dataset):
  20. <div class="code"><pre>
  21. g.region vector=roadsmajor -p
  22. d.vect roadsmajor
  23. d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
  24. </pre></div>
  25. <p>
  26. Non-interactive shortest path routing on road network (North Carolina sample dataset):
  27. <div class="code"><pre>
  28. d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
  29. </pre></div>
  30. <h2>SEE ALSO</h2>
  31. <em>
  32. <a href="v.net.path.html">v.net.path</a>
  33. </em>
  34. <h2>AUTHOR</h2>
  35. Radim Blazek, ITC-Irst, Trento, Italy
  36. <p><i>Last changed: $Date$</i>