Changeset 15005 in josm


Ignore:
Timestamp:
2019-04-21T01:49:30+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #17629 - complain about more descriptive names and propose to delete them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/unnecessary.mapcss

    r14987 r15005  
    9191}
    9292
    93 /* #17100, #17471 */
     93/* #17100, #17471, #17629 */
     94*[name][name=~/^(?i)(pond)$/][water=pond],
     95*[name][name=~/^(?i)(chapel|chapelle|kapelle)$/][building=chapel],
     96*[name][name=~/^(?i)(church|église|biserica)$/][amenity=place_of_worship][religion=christian],
     97*[name][name=~/^(?i)(mosque|cami|masjid|مسجد)$/][amenity=place_of_worship][religion=muslim],
    9498*[name][name=~/^(?i)(parking|parkplatz)$/][amenity=parking],
     99*[name][name=~/^(?i)(post office)$/][amenity=post_office],
     100*[name][name=~/^(?i)(restaurant)$/][amenity=restaurant],
     101*[name][name=~/^(?i)(toilets?)$/][amenity=toilets],
    95102*[name][name=~/^(?i)(playground|spielplatz)$/][leisure=playground],
    96 *[name][name=~/^(?i)(shop)$/][shop][shop!=no],
    97 *[name][name=~/^(?i)(building)$/][building][building!=no],
    98 *[name][name=~/^(?i)(house|rumah)$/][building=house],
     103*[name][name=~/^(?i)(shop|boutique)$/][shop][shop!=no],
     104*[name][name=~/^(?i)(building|bangunan)$/][building][building!=no],
     105*[name][name=~/^(?i)(house|casa|maison|rumah|vivienda)$/][building=house],
    99106*[name][name=~/^(?i)(kiosk)$/][shop=kiosk],
     107*[name][name=~/^(?i)(path)$/][highway=path],
    100108*[name][name=~/^(?i)(jalan)$/][highway],
    101109*[name][name=~/^(?i)(silo)$/][man_made=silo],
    102110*[name][name=~/^(?i)(silo)$/][building=silo],
    103 *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=graveyard],
    104 *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=cemetery],
    105 *[name="АГЗС"][amenity=fuel],
    106 *[name="АЗС"][amenity=fuel] {
     111*[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][amenity=grave_yard],
     112*[name][name=~/^(?i)(cemetery|cementerio|cimetière|cmentarz|friedhof)$/][landuse=cemetery],
     113*[name][name=~/^(?i)(mairie|rathaus)$/][amenity=townhall],
     114*[name][name=~/^(?i)(monument aux morts|war memorial)$/][historic=memorial][memorial=war_memorial],
     115*[name][name=~/^(?i)(school|école|Школа)$/][amenity=school],
     116*[name][name=~/^(?i)(école élémentaire)$/][amenity=school]["school:FR"="élémentaire"],
     117*[name][name=~/^(?i)(école maternelle)$/][amenity=school]["school:FR"="maternelle"],
     118*[name][name=~/^(?i)(école primaire)$/][amenity=school]["school:FR"="primaire"],
     119*[name][name=~/^(?i)(collège)$/][amenity=school]["school:FR"="collège"],
     120*[name][name=~/^(?i)(lycée)$/][amenity=school]["school:FR"="lycée"],
     121*[name][name=~/^(?i)(Аптека|farmacia|pharmacy|pharmacie)$/][amenity=pharmacy],
     122*[name][name=~/^(?i)(АГЗС|АЗС)$/][amenity=fuel] {
    107123  throwWarning: tr("{0}", "{0.tag}");
    108124  group: tr("descriptive name");
     
    131147  assertMatch: "way name=Silo man_made=silo building=silo";
    132148  assertMatch: "way name=Silo building=silo";
    133   assertMatch: "way name=cemetery amenity=graveyard";
    134   assertMatch: "way name=Cmentarz amenity=graveyard";
    135   assertNoMatch: "way name=kiosk amenity=graveyard";
     149  assertMatch: "way name=cemetery amenity=grave_yard";
     150  assertMatch: "way name=Cmentarz amenity=grave_yard";
     151  assertNoMatch: "way name=kiosk amenity=grave_yard";
    136152}
    137 *[name][name=~/^(?i)(house|rumah)$/][building][building!=house][building!=no] {
     153*[name][name=~/^(?i)(house|casa|rumah|vivienda)$/][building][building!=house][building!=no] {
    138154  throwWarning: tr("{0}", "{0.tag}");
    139155  group: tr("descriptive name");
Note: See TracChangeset for help on using the changeset viewer.