Ticket #23781: 23781.patch

File 23781.patch, 1.8 KB (added by gaben, 5 months ago)
  • resources/data/validator/numeric.mapcss

     
    6767  assertNoMatch: "node building:levels=0"; /* valid because there can be building:levels:underground > 0 or roof:levels > 0 */
    6868}
    6969
    70 *[roof:height][roof:height =~ /^0*(\.0*)?( (m|ft))?$/][roof:shape=flat] {
     70*[roof:height][siunit_length(tag("roof:height")) == 0][roof:shape=flat] {
    7171  throwWarning: tr("{0} is unnecessary for {1}", "{0.tag}", "{2.tag}");
    7272  group: tr("unnecessary tag");
    7373  fixRemove: "{0.key}";
  • resources/data/validator/combinations.mapcss

     
    756756}
    757757
    758758/* #17391 */
    759 way[highway=pedestrian][width][width<3] {
     759way[highway=pedestrian][width][siunit_length(tag(width))<3] {
    760760  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    761761  suggestAlternative: "highway=footway";
    762762  group: tr("suspicious tag combination");
     
    10601060}
    10611061
    10621062/* #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)],
     1063area[/^(building|building:part)$/][height][min_height][siunit_length(tag(height)) <= siunit_length(tag(min_height))],
    10641064area[/^(building|building:part)$/][building:levels][building:min_level][tag("building:levels") <= tag("building:min_level")] {
    10651065  throwWarning: tr("{0} is lower or equal to {1} on {2}", "{1.key}", "{2.key}", "{0.key}");
    10661066  group: tr("suspicious tag combination");