Changeset 10084 in josm


Ignore:
Timestamp:
2016-03-30T19:09:09+02:00 (8 years ago)
Author:
Klumbumbus
Message:

fix #10232, see #9667 - remove wrong "Decreasing house numbers in addresses interpolation" warning; add "Even housenumber in odd address interpolation." warning and vice versa; add addr:interpolation info

File:
1 edited

Legend:

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

    r7937 r10084  
    1 /* see #9667 - Verify interpolation range/values
    2    Matches nodes with a decrease of addr:housenumber within addr:interpolation=even/odd.
    3 */
    4 *[tag("addr:housenumber") > child_tag("addr:housenumber")][regexp_test("even|odd", parent_tag("addr:interpolation"))] + *[addr:housenumber] {
    5   throwWarning: tr("Decreasing house numbers in addresses interpolation");
     1/* see #10232 */
     2way[addr:interpolation=odd] > node[addr:housenumber][get(split(".", tag("addr:housenumber")/2), 1)=0] {
     3    throwWarning: tr("Even housenumber in odd address interpolation.");
    64}
     5way[addr:interpolation=even] > node[addr:housenumber][get(split(".", tag("addr:housenumber")/2), 1)=5] {
     6    throwWarning: tr("Odd housenumber in even address interpolation.");
     7}
     8way[addr:interpolation] {
     9    throwOther: tr("Way with {0}. Tag each housenumber separately if possible.", "{0.key}");
     10}
Note: See TracChangeset for help on using the changeset viewer.