1d.path(1)                   GRASS GIS User's Manual                  d.path(1)
2
3
4

NAME

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

KEYWORDS

9       display, network, shortest path
10

SYNOPSIS

12       d.path
13       d.path --help
14       d.path    [-gb]   map=name    [arc_type=string[,string,...]]    coordi‐
15       nates=x1,y1,x2,y2  [arc_layer=string]   [node_layer=string]   [arc_col‐
16       umn=string]      [arc_backward_column=string]      [node_column=string]
17       [highlight_color=string]   [--help]  [--verbose]  [--quiet]  [--ui]
18
19   Flags:
20       -g
21           Use geodesic calculation for longitude-latitude locations
22
23       -b
24           Render bold lines
25
26       --help
27           Print usage summary
28
29       --verbose
30           Verbose module output
31
32       --quiet
33           Quiet module output
34
35       --ui
36           Force launching GUI dialog
37
38   Parameters:
39       map=name [required]
40           Name of vector map
41           Or data source for direct OGR access
42
43       arc_type=string[,string,...]
44           Arc type
45           Options: line, boundary
46           Default: line,boundary
47
48       coordinates=x1,y1,x2,y2 [required]
49           Starting and ending coordinates
50
51       arc_layer=string
52           Arc layer
53           Vector features can have category values in different layers.  This
54           number determines which layer to use. When used with direct OGR ac‐
55           cess this is the layer name.
56           Default: 1
57
58       node_layer=string
59           Node layer
60           Vector features can have category values in different layers.  This
61           number determines which layer to use. When used with direct OGR ac‐
62           cess this is the layer name.
63           Default: 2
64
65       arc_column=string
66           Arc forward/both direction(s) cost column (number)
67
68       arc_backward_column=string
69           Arc backward direction cost column (number)
70
71       node_column=string
72           Node cost column
73
74       highlight_color=string
75           Highlight color
76           Default: red
77

DESCRIPTION

79       d.path enables shortest path vector networking.  Costs  may  be  either
80       line  lengths,  or attributes saved in a database table.  Supported are
81       cost assignments for both arcs and nodes, and also  different  in  both
82       directions  of  a  vector line. For areas cost will be calculated along
83       boundary lines.
84

NOTE

86       The user needs to display a vector  map  before  using  d.path.  If  no
87       graphics  monitor  is  open, a file map.png is generated in the current
88       directory.
89
90       The ’from’ and ’to’ points are entered by mouse into the map  displayed
91       in  the GRASS monitor, or if the coordinates option is used they can be
92       specified non-interactively.  The actions bound to  the  mouse  buttons
93       are described in the terminal window when running the command.
94
95       To calculate shortest path non-interactively and save the path to a new
96       vector map, use the v.net.path module.
97

EXAMPLES

99       Interactive shortest path routing on road network (North Carolina  sam‐
100       ple dataset):
101       g.region vector=roadsmajor -p
102       d.vect roadsmajor
103       d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
104
105       Non-interactive  shortest  path routing on road network (North Carolina
106       sample dataset):
107       d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
108

SEE ALSO

110        v.net.path
111

AUTHOR

113       Radim Blazek, ITC-Irst, Trento, Italy
114

SOURCE CODE

116       Available at: d.path source code (history)
117
118       Accessed: Saturday Oct 28 18:17:15 2023
119
120       Main index | Display index | Topics index | Keywords index |  Graphical
121       index | Full index
122
123       © 2003-2023 GRASS Development Team, GRASS GIS 8.3.1 Reference Manual
124
125
126
127GRASS 8.3.1                                                          d.path(1)
Impressum