-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules_Marcmarc.addon.validator.mapcss
33 lines (31 loc) · 1.1 KB
/
Rules_Marcmarc.addon.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
meta {
title: "Extended validator rules";
version: "1.04_2023-07-02";
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");
}
meta[lang=fr] {
title: "Règles de validations étendues";
description: "essaye de traiter 'toutes' les erreurs corrigibles et les améliorations";
}
relation[operator=TPF][!"operator:wikidata"][inside("CH")] {
throwWarning: tr("{0} wkidata", "{0.tag}");
fixAdd: "operator:wikidata=Q609332";
}
relation[network=Frimobil][!"network:wikidata"][inside("CH")] {
throwWarning: tr("{0} wikidata", "{0.tag}");
fixAdd: "network:wikidata=Q2394200";
}
*[operator="GRTgaz"][!"operator:wikidata"][inside("FR")] {
throwWarning: tr("{0} wkidata", "{0.tag}");
fixAdd: "operator:wikidata=Q820035";
}
*[operator="GRTGaz"][!"operator:wikidata"][inside("FR")] {
throwWarning: tr("{0} wkidata", "{0.tag}");
fixAdd: "operator=GRTgaz";
fixAdd: "operator:wikidata=Q820035";
}