Changeset 16858 in josm


Ignore:
Timestamp:
2020-08-10T16:06:59+02:00 (9 months ago)
Author:
Klumbumbus
Message:
  • see #17633 - Remove double warning for one object in some cases (e.g. name=school + building=school + amenity=school), avoid cases like solely building=school (without amenity=school) after autofix
  • ignore man_made=utility_pole
Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/ignoretags.cfg

    r16854 r16858  
    230230K:water=pool
    231231K:golf=path
     232K:man_made=utility_pole
    232233;
    233234; Highway Key/Value Pairs
  • trunk/resources/data/validator/unnecessary.mapcss

    r16856 r16858  
    9696*[name][name=~/^(?i)(parc|park)$/][leisure=park],
    9797*[name][name=~/^(?i)(pond)$/][water=pond],
    98 *[name][name=~/^(?i)(chapel|chapelle|kapelle)$/][building=chapel],
    9998*[name][name=~/^(?i)(church|église|biserica)$/][amenity=place_of_worship][religion=christian],
    10099*[name][name=~/^(?i)(mosque|cami|masjid|مسجد)$/][amenity=place_of_worship][religion=muslim],
     
    112111*[name][name=~/^(?i)(jalan)$/][highway],
    113112*[name][name=~/^(?i)(silo)$/][man_made=silo],
    114 *[name][name=~/^(?i)(silo)$/][building=silo],
    115113*[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][amenity=grave_yard],
    116114*[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][landuse=cemetery],
    117115*[name][name=~/^(?i)(monument aux morts|war memorial)$/][historic=memorial][memorial=war_memorial],
    118 *[name][name=~/^(?i)(school|école|Школа)$/][building=school],
    119116*[name][name=~/^(?i)(school|école|Школа)$/][amenity=school],
    120117*[name][name=~/^(?i)(école élémentaire)$/][amenity=school]["school:FR"="élémentaire"],
     
    151148  assertMatch: "way name=silo man_made=silo";
    152149  assertMatch: "way name=Silo man_made=silo building=silo";
    153   assertMatch: "way name=Silo building=silo";
     150  assertNoMatch: "way name=Silo building=silo";
    154151  assertMatch: "way name=cemetery amenity=grave_yard";
    155152  assertMatch: "way name=Cmentarz amenity=grave_yard";
    156153  assertNoMatch: "way name=kiosk amenity=grave_yard";
    157154}
    158 *[name][name=~/^(?i)(school|école|Школа)$/][building][building!=school][building!=no],
    159 *[name][name=~/^(?i)(house|rumah|vivienda)$/][building][building!=house][building!=no],
    160 *[name][name=~/^(?i)(casa)$/][building][building!=house][building!=no][outside("FR")] {
     155  /* the following without fixRemove to avoid informatin loss, should be checked manually */
     156*[name][name=~/^(?i)(chapel|chapelle|kapelle)$/], /* check if amenity=place_of_worship and/or building=chapel applies */
     157*[name][name=~/^(?i)(silo)$/][man_made!=silo], /* check if man_made=silo and/or building=silo applies */
     158*[name][name=~/^(?i)(school|école|Школа)$/][amenity!=school], /* check if amenity=school and/or building=school applies applies */
     159*[name][name=~/^(?i)(house|rumah|vivienda)$/][building][building!=house][building!=no], /* check if building=house applies */
     160*[name][name=~/^(?i)(casa)$/][building][building!=house][building!=no][outside("FR")] { /* check if building=house applies */
    161161  throwWarning: tr("{0}", "{0.tag}");
    162162  group: tr("descriptive name");
    163   /* without fixRemove to avoid possible information loss */
     163  assertMatch: "way name=Silo building=silo";
    164164  assertNoMatch: "way name=building building=yes";
    165165  assertNoMatch: "way name=building building=house";
Note: See TracChangeset for help on using the changeset viewer.