Ignore:
Timestamp:
2020-06-22T14:39:16+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #16898 - Warn about man_made=tower without tower:type and man_made=communications_tower with height<75m (patch by skyper, modified)

File:
1 edited

Legend:

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

    r16656 r16705  
    143143*[power=generator][!generator:source],
    144144*[amenity=social_facility][!social_facility],
    145 *[amenity=place_of_worship][!religion] {
     145*[amenity=place_of_worship][!religion],
     146*[man_made=tower][!tower:type] {
    146147  throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
    147148  group: tr("missing tag");
     
    730731  group: tr("missing tag");
    731732}
     733
     734/* #16898, tower vs. communications_tower, wiki suggests 100m as rough guideline, so we warn for < 75m */
     735*[man_made=communications_tower][height][height =~ /^((7[0-4]|[1-6]?[0-9])(\.[0-9]*)?( m)?|(2(4[0-5]|[0-3][0-9])|1?[0-9]?[0-9])((\.[0-9]*)?( ft|\')|\'(11|10|[0-9])(\.[0-9]*)?\"))$/] { /* 75m ~ 246ft ~ 246' */
     736  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     737  suggestAlternative: "man_made=tower + tower:type=communication + height";
     738  group: tr("suspicious tag combination");
     739  assertMatch: "node man_made=communications_tower height=58";
     740  assertMatch: "node man_made=communications_tower height=\"74 m\"";
     741  assertMatch: "node man_made=communications_tower height=0.8";
     742  assertMatch: "node man_made=communications_tower height=245'";
     743  assertMatch: "node man_made=communications_tower height=\"224.22 ft\"";
     744  assertMatch: "node man_made=communications_tower height=231'10.22\"";
     745  assertNoMatch: "node man_made=communications_tower height=\"75 m\"";
     746  assertNoMatch: "node man_made=communications_tower height=75.72";
     747  assertNoMatch: "node man_made=communications_tower height=\"328.22 ft\"";
     748  assertNoMatch: "node man_made=communications_tower height=4358'8\"";
     749  assertNoMatch: "node height=4358'";
     750}
Note: See TracChangeset for help on using the changeset viewer.