Changeset 17629 in josm


Ignore:
Timestamp:
2021-03-21T17:55:40+01:00 (4 years ago)
Author:
GerdP
Message:

fix #20570: waterway=riverbank handled differently from natural=water + water=river in validator overlap findings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/geometry.mapcss

    r17503 r17629  
    185185
    186186/* Overlapping areas (spatial test) */
    187 area[natural =~ /^(water|wetland|coastline)$/], area[landuse=reservoir] {
     187area[natural =~ /^(water|wetland|coastline)$/], area[waterway=riverbank], area[landuse=reservoir] {
    188188  set water_area;
    189189}
     
    191191/* area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area -- does not work for now -- see ticket#10215 */
    192192area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed:areaStyle.water_area,
     193area:closed:areaStyle[waterway=riverbank]                       ⧉ area:closed:areaStyle.water_area,
    193194area:closed:areaStyle[landuse=reservoir]                        ⧉ area:closed:areaStyle.water_area {
    194195  throwWarning: tr("Overlapping Water Areas");
     
    213214}
    214215
    215 /* #9556 */
    216 area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural] {
     216/* #9556, #20570 */
     217area:closed:areaStyle[tag("natural") = parent_tag("natural")] ⧉ area:closed:areaStyle[natural][natural !~ /^(water|wetland|coastline)$/] {
    217218  throwWarning: tr("Overlapping Identical Natural Areas");
    218219}
Note: See TracChangeset for help on using the changeset viewer.