Ticket #23781: 23781.patch
File 23781.patch, 1.8 KB (added by , 5 months ago) |
---|
-
resources/data/validator/numeric.mapcss
67 67 assertNoMatch: "node building:levels=0"; /* valid because there can be building:levels:underground > 0 or roof:levels > 0 */ 68 68 } 69 69 70 *[roof:height][ roof:height =~ /^0*(\.0*)?( (m|ft))?$/][roof:shape=flat] {70 *[roof:height][siunit_length(tag("roof:height")) == 0][roof:shape=flat] { 71 71 throwWarning: tr("{0} is unnecessary for {1}", "{0.tag}", "{2.tag}"); 72 72 group: tr("unnecessary tag"); 73 73 fixRemove: "{0.key}"; -
resources/data/validator/combinations.mapcss
756 756 } 757 757 758 758 /* #17391 */ 759 way[highway=pedestrian][width][ width<3] {759 way[highway=pedestrian][width][siunit_length(tag(width))<3] { 760 760 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}"); 761 761 suggestAlternative: "highway=footway"; 762 762 group: tr("suspicious tag combination"); … … 1060 1060 } 1061 1061 1062 1062 /* #21286 */ 1063 area[/^(building|building:part)$/][height =~ /^[0-9]+(\.[0-9]+)?( m)?$/][min_height =~ /^[0-9]+(\.[0-9]+)?( m)?$/][get(split(" ", tag(height)), 0) <= get(split(" ", tag(min_height)), 0)],1063 area[/^(building|building:part)$/][height][min_height][siunit_length(tag(height)) <= siunit_length(tag(min_height))], 1064 1064 area[/^(building|building:part)$/][building:levels][building:min_level][tag("building:levels") <= tag("building:min_level")] { 1065 1065 throwWarning: tr("{0} is lower or equal to {1} on {2}", "{1.key}", "{2.key}", "{0.key}"); 1066 1066 group: tr("suspicious tag combination");