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

DESCRIPTION

88       d.path  enables  shortest  path vector networking.  Costs may be either
89       line lengths, or attributes saved in a database table.   Supported  are
90       cost  assignments  for  both arcs and nodes, and also different in both
91       directions of a vector line. For areas cost will  be  calculated  along
92       boundary lines.
93

NOTE

95       The  user  needs  to  display  a  vector map before using d.path. If no
96       graphics monitor is open, a file map.png is generated  in  the  current
97       directory.
98
99       The  ’from’ and ’to’ points are entered by mouse into the map displayed
100       in the GRASS monitor, or if the coordinates option is used they can  be
101       specified  non-interactively.   The  actions bound to the mouse buttons
102       are described in the terminal window when running the command.
103
104       To calculate shortest path non-interactively and save the path to a new
105       vector map, use the v.net.path module.
106

EXAMPLES

108       Interactive  shortest path routing on road network (North Carolina sam‐
109       ple dataset):
110       g.region vector=roadsmajor -p
111       d.vect roadsmajor
112       d.path roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
113
114       Non-interactive shortest path routing on road network  (North  Carolina
115       sample dataset):
116       d.path -b roadsmajor coordinates=668646.15,224447.16,668348.83,235894.02
117

SEE ALSO

119        v.net.path
120

AUTHOR

122       Radim Blazek, ITC-Irst, Trento, Italy
123

SOURCE CODE

125       Available at: d.path source code (history)
126
127       Main  index | Display index | Topics index | Keywords index | Graphical
128       index | Full index
129
130       © 2003-2019 GRASS Development Team, GRASS GIS 7.8.2 Reference Manual
131
132
133
134GRASS 7.8.2                                                          d.path(1)
Impressum