Opened 7 years ago

Last modified 7 years ago

#16783 closed defect

[PATCH] small fix for landuse + building warning — at Initial Version

Reported by: naoliv Owned by: team
Priority: normal Milestone: 18.09
Component: Core validator Version:
Keywords: building landuse regression Cc:

Description

With an object having landuse + building we see a warning saying suspicious tag combination - landuse together with landuse

Changing the order fixes this:

  • data/validator/combinations.mapcss

    diff --git a/data/validator/combinations.mapcss b/data/validator/combinations.mapcss
    index ecfb1ab15..683293fe5 100644
    a b node[amenity][amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] {  
    359359way[highway][barrier],
    360360*[highway][waterway][waterway!=dam][waterway!=weir],
    361361way[highway][natural][natural!=ridge],
    362 *[landuse][landuse!=retail][building] {
     362*[landuse][building][landuse!=retail] {
    363363  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
    364364  group: tr("suspicious tag combination");
    365365  assertNoMatch: "node highway=street_lamp natural=birds_nest";
    way[highway][lanes][!lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1][ju  
    522522  assertNoMatch: "way highway=primary lanes=3 oneway=-1";
    523523  assertNoMatch: "way highway=primary lanes=4";
    524524  assertMatch: "way highway=primary lanes=3";
    525 }
    526  No newline at end of file
     525}

Change History (0)

Note: See TracTickets for help on using tickets.