This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
forked from OSMBrasil/validador-josm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
staging.validator.mapcss
55 lines (45 loc) · 1.83 KB
/
staging.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
meta
{
title: "Staging rules Brazil";
version: "2016-02-23";
description: "Staging rules for Brazil. Messages are in Portuguese only.";
author: "OpenStreetMap Brasil";
watch-modified: true;
}
/* acesso à Internet deve fazer parte de algum estabelecimento/local */
/* http://overpass-turbo.eu/s/8PJ */
*[internet_access][!leisure][!building][!office][!amenity][!tourism][!shop] {
throwWarning: tr("{0} deve estar associado a um local", "{0.key}");
}
/* wheelchair deve fazer parte de algum estabelecimento/local */
/* http://overpass-turbo.eu/s/8PL */
*[wheelchair][!highway][!man_made][!leisure][!building][!office][!amenity][!tourism][!shop] {
throwWarning: tr("{0} deve estar associado a um local", "{0.key}");
}
*[name =~ /^(?U)(\p{Lower}| )+$/] {
throwWarning: tr("verificar: {0} totalmente em minúsculo", "{0.key}");
}
/* áreas residenciais muito grandes que podem indicar uso incorreto como marcador de cidade */
/* http://overpass-turbo.eu/s/9pM */
area[landuse=residential][name !~ /(?i)(?u)(habitacional|condomínio|residencial)/][!barrier][eval(areasize()) > 200000] {
throwWarning: tr("verificar: área residencial muito grande");
}
way[highway $= _link][eval(waylength()) > 250] {
throwWarning: tr("verificar: {0} com comprimento muito grande", tag("highway"));
}
/* --> issue #77 */
area[admin_level =~ /^(8|9)$/][place] {
throwError: tr("limite não deve possuir {0}", "{1.key}");
}
area[place =~ /^(neighbourhood|suburb)$/][admin_level][admin_level != 10] {
throwError: tr("local com {0} ou {1} errado", "{0.key}", "{1.key}");
}
relation[admin_level = 10] >[role = admin_centre] node {
throwError: tr("bairro não deve possuir admin_centre");
suggestAlternative: "label";
}
/* issue #77 <-- */
way[highway] > node { set .is_in_highway; }
area[!highway] > node.is_in_highway {
throwWarning: tr("área conectada na rua");
}