File: get-tag.test

package info (click to toggle)
mkgmap 0.0.0%2Bsvn4262-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,544 kB
  • sloc: java: 71,295; xml: 1,659; python: 713; sh: 254; makefile: 150; perl: 31
file content (104 lines) | stat: -rw-r--r-- 2,273 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

WAY
highway=primary
maxspeed=60

WAY 2
highway=primary
maxspeed:forward=30

WAY 3
highway=primary
maxspeed:backward=20

WAY 4
highway=primary
maxspeed=30
maxspeed:forward=32

WAY 5
highway=primary
maxspeed=30
maxspeed:forward=28

WAY 6
highway=primary
maxspeed=30
maxspeed:backward=32

WAY 7
highway=primary
maxspeed=30
maxspeed:backward=28

WAY 8
highway=primary
maxspeed=30
maxspeed:forward=26
maxspeed:backward=27

WAY 9
highway=primary
maxspeed:forward=26
maxspeed:backward=27

WAY 10
highway=secondary
test=2
test1=1
test2=2
name=fred

WAY 11
highway=secondary
test=2
name=fred

WAY 12
highway=secondary
test=2
test1=10
name=fred

WAY 14
highway=secondary
test3=3
test1=1
name=fred

<<<lines>>>
maxspeed:forward=* & maxspeed!=* { set maxspeed='${maxspeed:forward}' }
$maxspeed:forward < $maxspeed { set maxspeed='${maxspeed:forward}' }
maxspeed:backward=* & maxspeed!=* { set maxspeed='${maxspeed:backward}' }
maxspeed:backward < $maxspeed { set maxspeed='${maxspeed:backward}' }

highway=primary {name '${maxspeed}' } [0x1]


test=test1 { name 'wrong' }
test=test2 { name 'wrong' }
test=$test1 { name 'wrong' }
test=$test2 { name 'ok' }
$test1 < $test2 { set ref=A2 }
$test1 > 4 { set ref=A4 }
test1=* & test3 > test1 { set ref=A99}
highway=secondary [0x2]

<finalize>
name=* { name '${name}' }
ref=* { addlabel '${ref}' }

<<<results>>>
WAY 1: Line 0x1, labels=[60, null, null, null], res=24-24 (1/1),(2/2),
WAY 2: Line 0x1, labels=[30, null, null, null], res=24-24 (1/1),(2/2),
WAY 3: Line 0x1, labels=[20, null, null, null], res=24-24 (1/1),(2/2),
WAY 4: Line 0x1, labels=[30, null, null, null], res=24-24 (1/1),(2/2),
WAY 5: Line 0x1, labels=[28, null, null, null], res=24-24 (1/1),(2/2),
WAY 6: Line 0x1, labels=[30, null, null, null], res=24-24 (1/1),(2/2),
WAY 7: Line 0x1, labels=[28, null, null, null], res=24-24 (1/1),(2/2),
WAY 8: Line 0x1, labels=[26, null, null, null], res=24-24 (1/1),(2/2),
WAY 9: Line 0x1, labels=[26, null, null, null], res=24-24 (1/1),(2/2),
WAY 10: Line 0x2, labels=[ok, A2, null, null], res=24-24 (1/1),(2/2),
WAY 11: Line 0x2, labels=[fred, null, null, null], res=24-24 (1/1),(2/2),
WAY 12: Line 0x2, labels=[fred, A4, null, null], res=24-24 (1/1),(2/2),
WAY 14: Line 0x2, labels=[fred, A99, null, null], res=24-24 (1/1),(2/2),