1v.net.alloc(1) Grass User's Manual v.net.alloc(1)
2
3
4
6 v.net.alloc - Allocate subnets for nearest centres (direction from
7 centre).
8 Centre node must be opened (costs >= 0). Costs of centre node are used
9 in calculation
10
12 vector, networking
13
15 v.net.alloc
16 v.net.alloc help
17 v.net.alloc [-g] input=name output=name [type=string[,string,...]]
18 [alayer=integer] [nlayer=integer] [afcolumn=string] [abcol‐
19 umn=string] [ncolumn=string] ccats=range [--overwrite] [--verbose]
20 [--quiet]
21
22 Flags:
23 -g
24 Use geodesic calculation for longitude-latitude locations
25
26 --overwrite
27 Allow output files to overwrite existing files
28
29 --verbose
30 Verbose module output
31
32 --quiet
33 Quiet module output
34
35 Parameters:
36 input=name
37 Name of input vector map
38
39 output=name
40 Name for output vector map
41
42 type=string[,string,...]
43 Type
44 Arc type
45 Options: line,boundary
46 Default: line,boundary
47
48 alayer=integer
49 Layer number
50 Arc layer
51 Default: 1
52
53 nlayer=integer
54 Layer number
55 Node layer
56 Default: 2
57
58 afcolumn=string
59 Arc forward/both direction(s) cost column (number)
60
61 abcolumn=string
62 Arc backward direction cost column (number)
63
64 ncolumn=string
65 Node cost column (number)
66
67 ccats=range
68 Category values
69 Categories of centres (points on nodes) to which net will be allo‐
70 cated, layer for this categories is given by nlayer option
71
73 v.net.alloc allocates subnets for nearest centres (direction from cen‐
74 tre). Centre node must be opened (costs >= 0). Costs of centre node are
75 used in calculation. Supported are cost assignments for both arcs and
76 nodes, and also different in both directions of a vector line. For
77 areas cost will be calculated along boundary lines.
78
80 Center nodes have to be assigned to vector nodes using v.digit. Nodes
81 and arcs can be closed using cost = -1.
82
84
85 # nlayer=1 if no extra table for nodes:
86 v.net.alloc network out=network_alloc ccats=0-13 nlayer=1
87 # the result has to be selected by category number of the relevant
88 node:
89 d.vect network_alloc cat=9 col=red
90 d.vect network_alloc cat=11 col=green
91 d.vect network_alloc cat=2492 col=yellow
92
93
94 Calculating subnets for 7 centre nodes using cost assigned to vector
95 length
96
97 v.net.alloc in=vectmap out=vectmap.alloc ccats=1-7
98
99
100 Calculating subnets for 7 centre nodes using cost assignments in both
101 directions
102
103 v.net.alloc in=vectmap afcol=INDEX abcol=INDEXBACK out=vectmap.alloc
104 ccats=1-7
105
106
108 d.path, v.net, v.net.iso, v.net.path, v.net.steiner, v.net.salesman
109
111 Radim Blazek, ITC-Irst, Trento, Italy
112
113 Last changed: $Date: 2007-05-02 22:15:58 +0200 (Wed, 02 May 2007) $
114
115 Full index
116
117 © 2003-2008 GRASS Development Team
118
119
120
121GRASS 6.3.0 v.net.alloc(1)