Ticket #22328: josm_22328.patch

File josm_22328.patch, 4.1 KB (added by skyper, 2 years ago)

patch, only using way and relation for highway and railway

  • resources/data/validator/combinations.mapcss

     
    808808  fixAdd: "emergency=emergency_ward_entrance";
    809809}
    810810
    811 /* missing or conflicting construction, see #17607 */
     811/* missing or conflicting construction, see #17607, #22328 */
    812812/* {0.key} without {1.key} and {2.key} */
    813813*[construction:building][!building][!construction],
    814 *[construction:highway][!highway][!construction],
    815 *[construction:railway][!railway][!construction],
     814way[construction:highway][!highway][!construction],
     815relation[construction:highway][!highway][!construction],
     816way[construction:railway][!railway][!construction],
     817relation[construction:railway][!railway][!construction],
    816818*[construction:landuse][!landuse][!construction] {
    817819  throwWarning: tr("{0} without {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
    818820  group: tr("missing tag");
     
    823825  assertNoMatch: "way construction:building=house construction=house";
    824826}
    825827/* {0.key} and {1.key} without {2.key} */
    826 *[building=construction]["construction:building"][!construction],
    827 *[highway=construction]["construction:highway"][!construction],
    828 *[railway=construction]["construction:railway"][!construction],
    829 *[landuse=construction]["construction:landuse"][!construction] {
     828*[building=construction][construction:building][!construction],
     829way[highway=construction][construction:highway][!construction],
     830relation[highway=construction][construction:highway][!construction],
     831way[railway=construction][construction:railway][!construction],
     832relation[railway=construction][construction:railway][!construction],
     833*[landuse=construction][construction:landuse][!construction] {
    830834  throwWarning:  tr("{0} together with {1} but without {2}", "{0.key}", "{1.key}", "{2.key}");
    831835  group: tr("missing tag");
    832836  fixAdd: "construction={1.value}";
     
    835839  assertNoMatch: "way construction:building=house construction=house";
    836840}
    837841/* {0.key} and {1.key} without {2.key} */
    838 *[building]["construction:building"][!construction][building!=construction],
    839 *[highway]["construction:highway"][!construction][highway!=construction],
    840 *[railway]["construction:railway"][!construction][railway!=construction],
    841 *[landuse]["construction:landuse"][!construction][landuse!=construction] {
     842*[building][construction:building][!construction][building!=construction],
     843way[highway][construction:highway][!construction][highway!=construction],
     844relation[highway][construction:highway][!construction][highway!=construction],
     845way[railway][construction:railway][!construction][railway!=construction],
     846relation[railway][construction:railway][!construction][railway!=construction],
     847*[landuse][construction:landuse][!construction][landuse!=construction] {
    842848  throwWarning: tr("{0} together with {1} and conflicting values plus no {2}", "{0.key}", "{1.key}", "{2.key}");
    843849  group: tr("suspicious tag combination");
    844850  assertMatch:   "way construction:building=house building=office";
     
    846852  assertNoMatch: "way construction:building=house construction=house";
    847853}
    848854
    849 *["construction:building"][construction][construction:building != *construction],
    850 *["construction:highway"][construction][construction:highway != *construction],
    851 *["construction:railway"][construction][construction:railway != *construction],
    852 *["construction:landuse"][construction][construction:landuse != *construction] {
     855*[construction:building][construction][construction:building != *construction],
     856way[construction:highway][construction][construction:highway != *construction],
     857relation[construction:highway][construction][construction:highway != *construction],
     858way[construction:railway][construction][construction:railway != *construction],
     859relation[construction:railway][construction][construction:railway != *construction],
     860*[construction:landuse][construction][construction:landuse != *construction] {
    853861  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
    854862  group: tr("suspicious tag combination");
    855863  assertMatch:   "way construction:building=house construction=office";