Ignore:
Timestamp:
2023-05-16T23:30:39+02:00 (3 years ago)
Author:
taylor.smock
Message:

Fix #21286: Add validator rule for min_height < height (patch by skyper, modified)

This additionally fixes an error introduced in r18730.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r18674 r18731  
    4848way[canal                      ][!waterway],
    4949way[have_riverbank             ][!waterway],
     50area[min_height                ][!height][/^(building|building:part)$/], /* #21286 */
     51area[building:min_level        ][!building:levels][/^(building|building:part)$/], /* #21286 */
    5052*[border_type                  ][!boundary],
    5153*[piste:difficulty             ][!piste:type],
     
    10771079  group: tr("suspicious tag combination");
    10781080}
     1081
     1082/* #21286 */
     1083area[/^(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)],
     1084area[/^(building|building:part)$/][building:levels][building:min_level][tag("building:levels") <= tag("building:min_level")] {
     1085  throwWarning: tr("{0} is lower or equal to {1} on {2}", "{1.key}", "{2.key}", "{0.key}");
     1086  group: tr("suspicious tag combination");
     1087}
     1088
Note: See TracChangeset for help on using the changeset viewer.