Ticket #16898: josm_16898.patch

File josm_16898.patch, 1.7 KB (added by skyper, 5 years ago)

validator part

  • src/org/openstreetmap/josm/resources/data/validator/combinations.mapcss

     
    123123  group: tr("missing tag");
    124124}
    125125
    126 /* {0.tag} without {1.key} (warning level), #18411, #18246 */
     126/* {0.tag} without {1.key} (warning level), #18411, #18246, #16898 */
    127127way[railway=construction][!construction],
    128128way[highway=construction][!construction],
    129129node[traffic_sign=maxspeed][!maxspeed],
     
    143143*[office=government][!government],
    144144*[power=generator][!generator:source],
    145145*[amenity=social_facility][!social_facility],
    146 *[amenity=place_of_worship][!religion] {
     146*[amenity=place_of_worship][!religion],
     147*[man_made=tower][!tower:type] {
    147148  throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
    148149  group: tr("missing tag");
    149150}
     
    694695  throwWarning: tr("{0} without {1} or {2}", "{0.key}", "maxspeed", "maxspeed:*");
    695696  group: tr("missing tag");
    696697}
     698 No newline at end of file
     699
     700/* tower vs. communications_tower, #16898 */
     701*[man_made=tower][tower:type=communication][material=concrete][height >= 100] {
     702  throwWarning: tr("{0} together with {1}, {2} and {3} equal or greater 100. Consider using man_made=communications_tower instead", "{0.tag}", "{1.tag}", "{2.tag}", "{3.key}");
     703  group: tr("suspicious tag combination");
     704}
     705*[man_made=communications_tower][height < 100] {
     706  throwWarning: tr("{0} and {1} below 100. Consider using man_made=tower with tower:type=communication instead", "{0.tag}", "{1.key}");
     707  group: tr("suspicious tag combination");