Changes between Version 5 and Version 6 of Rules/HungarySpecific


Ignore:
Timestamp:
2024-06-23T13:58:24+02:00 (18 months ago)
Author:
gaben
Comment:

reorder rules, add heuristics for memorial:conflict

Legend:

Unmodified
Added
Removed
Modified
  • Rules/HungarySpecific

    v5 v6  
    6565}
    6666
     67*[source:maxspeed="HU:living_street"][maxspeed!=20].itthon,
     68*[source:maxspeed="HU:urban"][maxspeed!=50].itthon,
     69*[source:maxspeed="HU:rural"][maxspeed!=90].itthon,
     70*[source:maxspeed="HU:trunk"][maxspeed!=110].itthon,
     71*[source:maxspeed="HU:motorway"][maxspeed!=130].itthon {
     72        group: "[HU] specifikus szabályok";
     73        throwWarning: "a maximálisan megengedett sebesség és a sebességforrás nem egyezik";
     74}
     75
     76*[maxspeed:type="HU:urban"][!maxspeed].itthon,
     77*[source:maxspeed="HU:urban"][!maxspeed].itthon {
     78        group: "[HU] specifikus szabályok";
     79        throwWarning: "hiányzó maximális sebesség: 50";
     80        fixAdd: "maxspeed=50";
     81}
     82
     83*[maxspeed:type="HU:rural"][!maxspeed].itthon,
     84*[source:maxspeed="HU:rural"][!maxspeed].itthon {
     85        group: "[HU] specifikus szabályok";
     86        throwWarning: "hiányzó maximális sebesség: 90";
     87        fixAdd: "maxspeed=90";
     88}
     89
     90*[maxspeed:type][source:maxspeed].itthon {
     91        group: "[HU] specifikus szabályok";
     92        throwWarning: "{0.key} és {1.key} ugyanazon az objektumon, távolítsd el az egyiket";
     93}
     94
    6795*[name=~/(?i)tüzép|tüzifa/][shop!=trade][!highway][!railway].itthon {
    6896        group: "[HU] specifikus szabályok";
     
    95123}
    96124
     125*[memorial=war_memorial][!memorial:conflict][name=~/(?i)(?<!I)(I\. világ)/].itthon {
     126        group: "[HU] specifikus szabályok";
     127        throwWarning: "I. világháborús emlékműhöz használd a memorial:conflict=WW1 címkézést";
     128        fixAdd: "memorial:conflict=WW1";
     129        /* FIXME: doesn't work for some reason
     130        assertMatch: "node memorial=war_memorial name=\"I. világháborús emlékmű\""; */
     131        assertNoMatch: "node memorial=war_memorial name=\"II. világháborús emlékmű\"";
     132}
     133
     134*[memorial=war_memorial][!memorial:conflict][name=~/(?i)II\. világ/].itthon {
     135        group: "[HU] specifikus szabályok";
     136        throwWarning: "II. világháborús emlékműhöz használd a memorial:conflict=WW2 címkézést";
     137        fixAdd: "memorial:conflict=WW2";
     138        /* FIXME: doesn't work for some reason
     139        assertMatch: "node memorial=war_memorial name=\"II. világháborús emlékmű\""; */
     140        assertNoMatch: "node memorial=war_memorial name=\"I. világháborús emlékmű\"";
     141}
     142
    97143area[landuse=quarry][name=~/(?i)szén/][!resource].itthon {
    98144        group: "[HU] specifikus szabályok";
     
    119165}
    120166
    121 *[source:maxspeed="HU:living_street"][maxspeed!=20].itthon,
    122 *[source:maxspeed="HU:urban"][maxspeed!=50].itthon,
    123 *[source:maxspeed="HU:rural"][maxspeed!=90].itthon,
    124 *[source:maxspeed="HU:trunk"][maxspeed!=110].itthon,
    125 *[source:maxspeed="HU:motorway"][maxspeed!=130].itthon {
    126         group: "[HU] specifikus szabályok";
    127         throwWarning: "a maximálisan megengedett sebesség és a sebességforrás nem egyezik";
    128 }
    129 
    130167*[name=~/(?i)faluház/][!highway][!amenity].itthon,
    131168*[name=~/(?i)faluház/][!highway][amenity!=community_centre].itthon {