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). Centre node must be opened (costs >= 0). Costs of centre node
8 are used in calculation
9
11 vector, networking
12
14 v.net.alloc
15 v.net.alloc help
16 v.net.alloc [-g] input=name output=name [type=string[,string,...]]
17 [alayer=integer] [nlayer=integer] [afcolumn=string] [abcol‐
18 umn=string] [ncolumn=string] ccats=range [--overwrite]
19
20 Flags:
21 -g Use geodesic calculation for longitude-latitude locations
22
23 --overwrite
24
25 Parameters:
26 input=name
27 Name of input vector map
28
29 output=name
30 Name for output vector map
31
32 type=string[,string,...]
33 Arc type Options: line,boundary Default: line,boundary
34
35 alayer=integer
36 Arc layer Default: 1
37
38 nlayer=integer
39 Node layer Default: 2
40
41 afcolumn=string
42 Arc forward/both direction(s) cost column (number)
43
44 abcolumn=string
45 Arc backward direction cost column (number)
46
47 ncolumn=string
48 Node cost column (number)
49
50 ccats=range
51 Category values Categories of centres (points on nodes) to which
52 net will be allocated, layer for this categories is given by nlayer
53 option.
54
56 v.net.alloc allocates subnets for nearest centres (direction from cen‐
57 tre). Centre node must be opened (costs >= 0). Costs of centre node are
58 used in calculation. Supported are cost assignments for both arcs and
59 nodes, and also different in both directions of a vector line. For
60 areas cost will be calculated along boundary lines.
61
63 Center nodes have to be assigned to vector nodes using v.digit. Nodes
64 and arcs can be closed using cost = -1.
65
67
68 # nlayer=1 if no extra table for nodes:
69 v.net.alloc network out=network_alloc ccats=0-13 nlayer=1
70 # the result has to be selected by category number of the relevant
71 node:
72 d.vect network_alloc cat=9 col=red
73 d.vect network_alloc cat=11 col=green
74 d.vect network_alloc cat=2492 col=yellow
75
76
77 Calculating subnets for 7 centre nodes using cost assigned to vector
78 length
79
80 v.net.alloc in=vectmap out=vectmap.alloc ccats=1-7
81
82
83 Calculating subnets for 7 centre nodes using cost assignments in both
84 directions
85
86 v.net.alloc in=vectmap afcol=INDEX abcol=INDEXBACK out=vectmap.alloc
87 ccats=1-7
88
89
91 d.path, v.net, v.net.iso, v.net.path, v.net.steiner, v.net.salesman
92
94 Radim Blazek, ITC-Irst, Trento, Italy
95
96 Last changed: $Date: 2007/05/02 20:15:58 $
97
98 Full index
99
100
101
102GRASS 6.2.2 v.net.alloc(1)