Changeset 17759 in josm for trunk/resources
- Timestamp:
- 2021-04-12T21:20:34+02:00 (4 years ago)
- Location:
- trunk/resources/data/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/addresses.mapcss
r16708 r17759 1 1 /* #10232 */ 2 way[addr:interpolation=odd] > node[addr:housenumber][ get(split(".",tag("addr:housenumber")/2), 1)=0] {2 way[addr:interpolation=odd] > node[addr:housenumber][mod(tag("addr:housenumber"),2)=0] { 3 3 throwWarning: tr("Even housenumber in odd address interpolation."); 4 4 } 5 way[addr:interpolation=even] > node[addr:housenumber][ get(split(".",tag("addr:housenumber")/2), 1)=5] {5 way[addr:interpolation=even] > node[addr:housenumber][mod(tag("addr:housenumber"),2)=1] { 6 6 throwWarning: tr("Odd housenumber in even address interpolation."); 7 7 } -
trunk/resources/data/validator/combinations.mapcss
r17481 r17759 647 647 648 648 /* #14125, #14323, #18185 */ 649 way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][oneway!=reversible][highway!=motorway][junction!=roundabout][lanes>2][ get(split(".",tag(lanes)/2), 1)=5] {649 way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][oneway!=reversible][highway!=motorway][junction!=roundabout][lanes>2][mod(tag(lanes),2)=1] { 650 650 throwWarning: tr("street with odd number of {0}, but without {1} and {2} or {3}", "{1.key}", "{2.key}", "{3.key}", "{4.key}"); 651 651 group: tr("missing tag"); … … 667 667 assertNoMatch: "way highway=primary turn:lanes=left|right lanes=2"; 668 668 } 669 way[highway][!lanes:forward][/^.*:lanes:forward$/][!lanes:backward][ !get(split(".",tag(lanes)/2), 1)=5],670 way[highway][!lanes:backward][/^.*:lanes:backward$/][!lanes:forward][ !get(split(".",tag(lanes)/2), 1)=5] {669 way[highway][!lanes:forward][/^.*:lanes:forward$/][!lanes:backward][mod(tag(lanes),2)=0], 670 way[highway][!lanes:backward][/^.*:lanes:backward$/][!lanes:forward][mod(tag(lanes),2)=0] { 671 671 throwOther: tr("{0} without {1}", "{2.key}", "{1.key}"); 672 672 group: tr("missing tag");
Note:
See TracChangeset
for help on using the changeset viewer.