Ticket #16707: 16707.patch

File 16707.patch, 1.3 KB (added by GerdP, 5 weeks ago)
  • data/validator/geometry.mapcss

     
    166166  throwWarning: tr("Building inside building");
    167167}
    168168
     169/* Building overlapping building (spatial test) */
     170area[building][building!~/no|entrance/][any(tag("layer"),"0") = any(parent_tag("layer"),"0")] ⧉
     171area[building][building!~/no|entrance/] {
     172  throwWarning: tr("Overlapping buildings");
     173}
     174
    169175/* Overlapping areas (spatial test) */
    170176area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
    171177  set water_area;
  • src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java

     
    115115            if (areLayerOrLevelDifferent(w1, w2)) {
    116116                return true;
    117117            }
     118            if (isBuilding(w1) && isBuilding(w2)) {
     119                return true;
     120            }
    118121            if (w1.hasKey(HIGHWAY) && w2.hasKey(HIGHWAY) && !Objects.equals(w1.get("level"), w2.get("level"))) {
    119122                return true;
    120123            }