Skip to content

Commit 8c91e23

Browse files
committed
Revert "ADD: rendering of CTCS signalling (preliminary)"
This reverts commit c0cc032. The commit introduced a regression documented in #115 (comment)
1 parent c19a215 commit 8c91e23

3 files changed

Lines changed: 7 additions & 18 deletions

File tree

signals.mml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Layer:
9898
NULL AS construction_usage, NULL AS construction_service,
9999
NULL AS preserved_railway, NULL AS preserved_service,
100100
NULL AS preserved_usage,
101-
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, ctcs, etcs, construction_etcs,
102-
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, ctcs, etcs, construction_etcs) AS rank
101+
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, etcs, construction_etcs,
102+
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, etcs, construction_etcs) AS rank
103103
FROM
104104
(SELECT
105105
way, railway, usage,
@@ -115,7 +115,6 @@ Layer:
115115
tags->'railway:tvm' AS tvm,
116116
tags->'railway:scmt' AS scmt,
117117
tags->'railway:asfa' AS asfa,
118-
railway_null_or_zero_to_no(tags->'railway:ctcs') AS ctcs,
119118
railway_null_or_zero_to_no(tags->'railway:ptc') AS ptc,
120119
railway_null_or_zero_to_no(tags->'railway:etcs') AS etcs,
121120
railway_null_or_zero_to_no(tags->'construction:railway:etcs') AS construction_etcs
@@ -143,8 +142,8 @@ Layer:
143142
NULL AS construction_usage, NULL AS construction_service,
144143
NULL AS preserved_railway, NULL AS preserved_service,
145144
NULL AS preserved_usage,
146-
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, ctcs, etcs, construction_etcs,
147-
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, ctcs, etcs, construction_etcs) AS rank
145+
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, etcs, construction_etcs,
146+
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, etcs, construction_etcs) AS rank
148147
FROM
149148
(SELECT
150149
way, railway, usage,
@@ -160,7 +159,6 @@ Layer:
160159
tags->'railway:tvm' AS tvm,
161160
tags->'railway:scmt' AS scmt,
162161
tags->'railway:asfa' AS asfa,
163-
railway_null_or_zero_to_no(tags->'railway:ctcs') AS ctcs,
164162
railway_null_or_zero_to_no(tags->'railway:ptc') AS ptc,
165163
railway_null_or_zero_to_no(tags->'railway:etcs') AS etcs,
166164
railway_null_or_zero_to_no(tags->'construction:railway:etcs') AS construction_etcs
@@ -188,8 +186,8 @@ Layer:
188186
construction_usage, construction_service,
189187
preserved_railway, preserved_service,
190188
preserved_usage,
191-
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, ctcs, etcs, construction_etcs,
192-
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, ctcs, etcs, construction_etcs) AS rank
189+
pzb, lzb, zsi127, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, etcs, construction_etcs,
190+
railway_train_protection_rank(pzb, lzb, atb, atb_eg, atb_ng, atb_vv, atc, kvb, tvm, scmt, asfa, ptc, zsi127, etcs, construction_etcs) AS rank
193191
FROM
194192
(SELECT
195193
way, railway, usage, service,
@@ -212,7 +210,6 @@ Layer:
212210
tags->'railway:tvm' AS tvm,
213211
tags->'railway:scmt' AS scmt,
214212
tags->'railway:asfa' AS asfa,
215-
railway_null_or_zero_to_no(tags->'railway:ctcs') AS ctcs,
216213
railway_null_or_zero_to_no(tags->'railway:ptc') AS ptc,
217214
railway_null_or_zero_to_no(tags->'railway:etcs') AS etcs,
218215
railway_null_or_zero_to_no(tags->'construction:railway:etcs') AS construction_etcs,

sql/functions.sql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ CREATE OR REPLACE FUNCTION railway_train_protection_rank(
322322
asfa TEXT,
323323
ptc TEXT,
324324
zsi127 TEXT,
325-
ctcs TEXT,
326325
etcs TEXT,
327326
construction_etcs TEXT) RETURNS INTEGER AS $$
328327
BEGIN
@@ -331,9 +330,6 @@ BEGIN
331330
END IF;
332331
IF ptc <> 'no' THEN
333332
RETURN 10;
334-
END IF;
335-
IF ctcs <> 'no' THEN
336-
RETURN 10;
337333
END IF;
338334
IF construction_etcs <> 'no' THEN
339335
RETURN 9;
@@ -365,7 +361,7 @@ BEGIN
365361
IF pzb = 'yes' THEN
366362
RETURN 2;
367363
END IF;
368-
IF (pzb = 'no' AND lzb = 'no' AND etcs = 'no') OR (atb = 'no' AND etcs = 'no') OR (atc = 'no' AND etcs = 'no') OR (scmt = 'no' AND etcs = 'no') OR (asfa = 'no' AND etcs = 'no') OR (kvb = 'no' AND tvm = 'no' AND etcs = 'no') OR (zsi127 = 'no') OR (ctcs = 'no') THEN
364+
IF (pzb = 'no' AND lzb = 'no' AND etcs = 'no') OR (atb = 'no' AND etcs = 'no') OR (atc = 'no' AND etcs = 'no') OR (scmt = 'no' AND etcs = 'no') OR (asfa = 'no' AND etcs = 'no') OR (kvb = 'no' AND tvm = 'no' AND etcs = 'no') OR (zsi127 = 'no') THEN
369365
RETURN 1;
370366
END IF;
371367
RETURN 0;

train_protection.mss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
@kvb_color: #66cc33;
1515
@tvm_color: #009966;
1616
@ptc_color: #cc0033;
17-
@ctcs_color: orange;
1817
@etcs_color: blue;
1918
@etcs_construction_color: #87CEFA;
2019

@@ -102,9 +101,6 @@
102101
["ptc"!="no"] {
103102
line-color: @ptc_color;
104103
}
105-
["ctcs"!="no"] {
106-
line-color: @ctcs_color;
107-
}
108104
["zsi127"="yes"] {
109105
line-color: @zsi127_color;
110106
}

0 commit comments

Comments
 (0)