Changeset 17503 in josm


Ignore:
Timestamp:
2021-02-21T09:43:25+01:00 (2 weeks ago)
Author:
GerdP
Message:

fix #20489: Test "Water area inside water area" doesn't work well

  • we have to check both combinations (right inside left and left inside right) when using class ".water_area" because this only matches for the right
File:
1 edited

Legend:

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

    r17387 r17503  
    196196
    197197/* Water area inside water area (spatial test) */
    198 area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ∈  area:closed:areaStyle.water_area,
    199 area:closed:areaStyle[landuse=reservoir]                        ∈  area:closed:areaStyle.water_area {
     198area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⊆  area:closed:areaStyle.water_area,
     199area:closed:areaStyle[landuse=reservoir]                        ⊆  area:closed:areaStyle.water_area,
     200area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⊇  area:closed:areaStyle.water_area,
     201area:closed:areaStyle[landuse=reservoir]                        ⊇  area:closed:areaStyle.water_area {
    200202  throwWarning: tr("Water area inside water area");
    201203}
Note: See TracChangeset for help on using the changeset viewer.