Changeset 17680 in josm for trunk


Ignore:
Timestamp:
2021-03-28T17:02:13+02:00 (4 years ago)
Author:
GerdP
Message:

fix #20674: Water area inside water area not detected for waterway=riverbank

  • add checks for waterway=riverbank
  • remove check for :areaStyle where obsolete or wrong
File:
1 edited

Legend:

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

    r17629 r17680  
    189189}
    190190
    191 /* area:closed:areaStyle.water_area ⧉ area:closed:areaStyle.water_area -- does not work for now -- see ticket#10215 */
    192 area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed:areaStyle.water_area,
    193 area:closed:areaStyle[waterway=riverbank]                       ⧉ area:closed:areaStyle.water_area,
    194 area:closed:areaStyle[landuse=reservoir]                        ⧉ area:closed:areaStyle.water_area {
     191/* area:closed.water_area ⧉ area:closed.water_area -- does not work for now -- see ticket#10215 */
     192area:closed[natural =~ /^(water|wetland|coastline)$/] ⧉ area:closed.water_area,
     193area:closed[waterway=riverbank]                       ⧉ area:closed.water_area,
     194area:closed[landuse=reservoir]                        ⧉ area:closed.water_area {
    195195  throwWarning: tr("Overlapping Water Areas");
    196196}
    197197
    198198/* Water area inside water area (spatial test) */
    199 area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⊆  area:closed:areaStyle.water_area,
    200 area:closed:areaStyle[landuse=reservoir]                        ⊆  area:closed:areaStyle.water_area,
    201 area:closed:areaStyle[natural =~ /^(water|wetland|coastline)$/] ⊇  area:closed:areaStyle.water_area,
    202 area:closed:areaStyle[landuse=reservoir]                        ⊇  area:closed:areaStyle.water_area {
     199area:closed[natural =~ /^(water|wetland|coastline)$/] ⊆  area:closed.water_area,
     200area:closed[waterway=riverbank]                       ⊆  area:closed.water_area,
     201area:closed[landuse=reservoir]                        ⊆  area:closed.water_area,
     202area:closed[natural =~ /^(water|wetland|coastline)$/] ⊇  area:closed.water_area,
     203area:closed[waterway=riverbank]                       ⊇  area:closed.water_area,
     204area:closed[landuse=reservoir]                        ⊇  area:closed.water_area {
    203205  throwWarning: tr("Water area inside water area");
    204206}
     
    219221}
    220222
    221 area:closed:areaStyle[tag("landuse") = parent_tag("landuse")] ⧉ area:closed:areaStyle[landuse] {
     223area:closed[tag("landuse") = parent_tag("landuse")] ⧉ area:closed[landuse] {
    222224  throwWarning: tr("Overlapping Identical Landuses");
    223225}
Note: See TracChangeset for help on using the changeset viewer.