GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
d.path(1) GRASS GIS User's Manual d.path(1)

d.path - Finds shortest path for selected starting and ending node.

display, network, shortest path

d.path
d.path --help
d.path [-gb] map=name [arc_type=string[,string,...]] coordinates=x1,y1,x2,y2 [arc_layer=string] [node_layer=string] [arc_column=string] [arc_backward_column=string] [node_column=string] [highlight_color=string] [--help] [--verbose] [--quiet] [--ui]


Use geodesic calculation for longitude-latitude locations

Render bold lines

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of vector map
Or data source for direct OGR access

Arc type
Options: line, boundary
Default: line,boundary

Starting and ending coordinates

Arc layer
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 1

Node layer
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 2

Arc forward/both direction(s) cost column (number)

Arc backward direction cost column (number)

Node cost column

Highlight color
Default: red

d.path 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.

The user needs to display a vector map before using d.path. If no graphics monitor is open, a file map.png is generated in the current directory.

The ’from’ and ’to’ points are entered by mouse into the map displayed in the GRASS monitor, or if the coordinates 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.

To calculate shortest path non-interactively and save the path to a new vector map, use the v.net.path module.

Interactive shortest path routing on road network (North Carolina sample dataset):

g.region vector=roadsmajor -p
d.vect roadsmajor
d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02

Non-interactive shortest path routing on road network (North Carolina sample dataset):

d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02

v.net.path

Radim Blazek, ITC-Irst, Trento, Italy

Available at: d.path source code (history)

Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d

Main index | Display index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.