Ignore:
Timestamp:
2021-04-12T21:20:34+02:00 (5 months ago)
Author:
simon04
Message:

fix #20751 - Add MapCSS function mod (modulo)

File:
1 edited

Legend:

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

    r16708 r17759  
    11/* #10232 */
    2 way[addr:interpolation=odd] > node[addr:housenumber][get(split(".", tag("addr:housenumber")/2), 1)=0] {
     2way[addr:interpolation=odd] > node[addr:housenumber][mod(tag("addr:housenumber"),2)=0] {
    33    throwWarning: tr("Even housenumber in odd address interpolation.");
    44}
    5 way[addr:interpolation=even] > node[addr:housenumber][get(split(".", tag("addr:housenumber")/2), 1)=5] {
     5way[addr:interpolation=even] > node[addr:housenumber][mod(tag("addr:housenumber"),2)=1] {
    66    throwWarning: tr("Odd housenumber in even address interpolation.");
    77}
Note: See TracChangeset for help on using the changeset viewer.