-
Notifications
You must be signed in to change notification settings - Fork 0
/
project-norway-rules.validator.mapcss
119 lines (99 loc) · 2.52 KB
/
project-norway-rules.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
meta {
title: "openstreetmap project norway JOSM validator rules";
version: "0.1";
description: "Rules to give warning, errors and automatic fixes when importing data into openstreetmap";
author: "FredrikLindseth";
watch-modified: true;
baselanguage: "en_GB";
link: "https://github.com/osmno";
}
/* TODO:
- Last_inspection not in the last two years
- Other import-tags
- Tags from N50
*/
*[ADDRESS] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[COUNTY] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[CREATED] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[DISTANCE] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[ELVEG] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[FIRST_INSPECTION] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[FIXCLASS] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[FIXME|fixme] {
throwwarning: tr("{0} should probably be fixed before upload", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[FIXMISSING] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[FIXREF] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[GEOCODE] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[GEOCODE_METHOD] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[GEOCODE_RESULT] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[LAST_INSPECTION] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[MUNICIPALITY] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[OSMID] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}
*[SWAP] {
throwerror: tr("{0} should not be uploaded", "{0.key}");
group: tr("no-import tag");
fixRemove: "{0}";
}