-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRules_Marcmarc.depreciated.validator.mapcss
104 lines (95 loc) · 3.15 KB
/
Rules_Marcmarc.depreciated.validator.mapcss
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
meta {
title: "Extended validator rules";
version: "1.05_2023-06-14";
description: "try to catch 'all' fixables errors and improvement";
author: "Marcmarc";
link: "https://github.com/Marc-marc-marc/osm-mapcss";
min-josm-version: "14481";
baselanguage: "en";
-osmoseTags: list("fix:chair", "deprecated");
-osmoseItemClassLevel: "4010/4010/2";
}
meta[lang=fr] {
title: "Règles de validations étendues";
description: "essaye de traiter 'toutes' les erreurs corrigibles et les améliorations";
}
*[source_date][source] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
suggestAlternative: "source:date";
group: tr("deprecated tagging");
fixChangeKey: "source_date=>source:date";
}
*[date:source][source] {
throwWarning: tr("{0} is deprecated", "{0.key}");
suggestAlternative: "source:date";
group: tr("deprecated tagging");
fixChangeKey: "source_date=>source:date";
}
*[date:survey] {
throwWarning: tr("{0} is deprecated", "{0.key}");
suggestAlternative: "survey:date";
group: tr("deprecated tagging");
fixChangeKey: "date:survey=>survey:date";
}
*[crossing=island] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
suggestAlternative: "crossing:island=yes";
group: tr("deprecated tagging");
fixRemove: "crossing";
fixAdd: "crossing:island=yes";
}
*[diaper=no] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
suggestAlternative: "changing_table=no";
group: tr("deprecated tagging");
fixRemove: "diaper";
fixAdd: "changing_table=no";
}
node[pipeline=marker][!marker][!substance] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
group: tr("deprecated tagging");
suggestAlternative: "marker=yes + subject=pipeline";
fixRemove: "pipeline";
fixAdd: "marker=yes";
fixAdd: "subject=pipeline";
}
node[pipeline=marker][!marker][substance] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
group: tr("deprecated tagging");
suggestAlternative: "marker=yes + subject=pipeline";
fixRemove: "pipeline";
fixAdd: "marker=yes";
fixAdd: "subject=pipeline";
fixChangeKey: "substance=>utility";
}
node[pipeline=marker][marker][!substance] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
group: tr("deprecated tagging");
suggestAlternative: "subject=pipeline";
fixRemove: "pipeline";
fixAdd: "subject=pipeline";
}
node[pipeline=marker][marker][substance] {
throwWarning: tr("{0} is deprecated", "{0.tag}");
group: tr("deprecated tagging");
suggestAlternative: "subject=pipeline";
fixRemove: "pipeline";
fixAdd: "subject=pipeline";
fixChangeKey: "substance=>utility";
}
node[substance][marker][!utility] {
throwWarning: tr("{0} is deprecated on marker", "{0.tag}");
group: tr("deprecated tagging");
fixChangeKey: "substance=>utility";
}
node[marker=yes][cover=roof] {
throwWarning: tr("{0} is deprecated on marker", "{0.tag}");
group: tr("deprecated tagging");
fixAdd: "marker=aerial";
fixRemove: "cover";
}
node[marker=aerial][cover=roof] {
throwWarning: tr("{0} is deprecated on marker", "{0.tag}");
group: tr("deprecated tagging");
fixRemove: "cover";
}