source: josm/trunk/data/validator/geometry.mapcss @ 6613

Last change on this file since 6613 was 6613, checked in by simon04, 6 years ago

see #9516 - MapCSS: add support for crossing polygon check (area ⧉ area), replace OverlappingAreas test by a corresponding MapCSS test

File size: 782 bytes
Line 
1/* {0} on a node */
2node[oneway],
3node[bridge?],
4node[source:geometry],
5node[source:outline] {
6  throwWarning: tr("{0} on a node", "{0.key}");
7  assertMatch: "node oneway=-1";
8  assertNoMatch: "way oneway=-1";
9  assertMatch: "node bridge=yes";
10  assertNoMatch: "node bridge=13";
11}
12
13/* Building inside building (spatial test) */
14*[building!~/no|entrance/][coalesce(tag("layer"),"0") = coalesce(parent_tag("layer"),"0")] 
15*[building!~/no|entrance/] {
16  throwWarning: tr("Building inside building");
17}
18
19/* Overlapping areas (spatial test) */
20area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
21  set water_area;
22}
23
24area.water_area  area.water_area {
25  throwWarning: tr("Overlapping Water Areas");
26}
27
28area  area {
29  throwOther: tr("Overlapping Areas");
30}
Note: See TracBrowser for help on using the repository browser.