Changeset 19140 in josm for trunk


Ignore:
Timestamp:
2024-07-15T13:11:17+02:00 (5 months ago)
Author:
stoecker
Message:

adapt height rules to use siunit_length - patch by gaben, fix #23781

Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

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

    r19129 r19140  
    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";
     
    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}");
  • trunk/resources/data/validator/numeric.mapcss

    r19129 r19140  
    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");
Note: See TracChangeset for help on using the changeset viewer.