Changeset 18103 in josm
- Timestamp:
- 2021-08-01T20:51:02+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/combinations.mapcss
r18050 r18103 754 754 } 755 755 756 /* missing or conflicting construction, see #17607 */ 757 /* {0.key} without {1.key} and {2.key} */ 758 *[construction:building][!building][!construction], 759 *[construction:highway][!highway][!construction], 760 *[construction:railway][!railway][!construction], 761 *[construction:landuse][!landuse][!construction] { 762 throwWarning: tr("{0} without {1} and {2}", "{0.key}", "{1.key}", "{2.key}"); 763 group: tr("missing tag"); 764 fixAdd: "{1.key}=construction"; 765 fixAdd: "construction={0.value}"; 766 assertMatch: "way construction:building=house"; 767 assertNoMatch: "way construction:building=house building=house "; 768 assertNoMatch: "way construction:building=house construction=house"; 769 } 770 /* {0.key} and {1.key} without {2.key} */ 771 *[building=construction]["construction:building"][!construction], 772 *[highway=construction]["construction:highway"][!construction], 773 *[railway=construction]["construction:railway"][!construction], 774 *[landuse=construction]["construction:landuse"][!construction] { 775 throwWarning: tr("{0} together with {1} but without {2}", "{0.key}", "{1.key}", "{2.key}"); 776 group: tr("missing tag"); 777 fixAdd: "construction={1.value}"; 778 assertMatch: "way construction:building=house building=construction"; 779 assertNoMatch: "way construction:building=house building=house "; 780 assertNoMatch: "way construction:building=house construction=house"; 781 } 782 /* {0.key} and {1.key} without {2.key} */ 783 *[building]["construction:building"][!construction][building!=construction], 784 *[highway]["construction:highway"][!construction][highway!=construction], 785 *[railway]["construction:railway"][!construction][railway!=construction], 786 *[landuse]["construction:landuse"][!construction][landuse!=construction] { 787 throwWarning: tr("{0} together with {1} and conflicting values plus no {2}", "{0.key}", "{1.key}", "{2.key}"); 788 group: tr("suspicious tag combination"); 789 assertMatch: "way construction:building=house building=office"; 790 assertNoMatch: "way construction:building=house building=construction"; 791 assertNoMatch: "way construction:building=house construction=house"; 792 } 793 794 *["construction:building"][construction][construction:building != *construction], 795 *["construction:highway"][construction][construction:highway != *construction], 796 *["construction:railway"][construction][construction:railway != *construction], 797 *["construction:landuse"][construction][construction:landuse != *construction] { 798 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}"); 799 group: tr("suspicious tag combination"); 800 assertMatch: "way construction:building=house construction=office"; 801 assertNoMatch: "way construction:building=house construction=house"; 802 } 803 756 804 /* #18203 */ 757 805 way[construction][construction!=yes][construction!=minor][highway][highway!=construction] {
Note:
See TracChangeset
for help on using the changeset viewer.