Changeset 18230 in josm for trunk/resources/data/validator


Ignore:
Timestamp:
2021-09-27T00:35:48+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #20530 - fix #20531 - Add man_made pump preset, deprecate man_made=pumping_rig, pump:type=* and substance=heat (patch and icons by skyper, François Lacombe and gaben)

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

Legend:

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

    r18112 r18230  
    126126}
    127127
    128 /* {0.tag} without {1.key} (warning level), #18411, #18246 */
     128/* {0.key} without {1.tag}, {2.tag}, {3.tag} or {4.tag}, #20530 */
     129*[pump_mechanism][man_made!=pump][man_made!=windpump][man_made!=water_well][man_made!=petroleum_well] {
     130  throwWarning: tr("{0} without {1}, {2}, {3} or {4}", "{0.key}", "{1.tag}", "{2.tag}", "{3.tag}", "{4.tag}");
     131  group: tr("missing tag");
     132}
     133
     134/* {0.tag} without {1.key} (warning level), #18411, #18246, #20530 */
    129135way[railway=construction][!construction],
    130136way[highway=construction][!construction],
    131137node[traffic_sign=maxspeed][!maxspeed][!/^maxspeed:.+/],
    132 node[actuator=manual][!handle],
     138*[actuator=manual][!handle],
     139*[mechanical_driver=manual][!handle],
    133140node[emergency=fire_hydrant][!fire_hydrant:type],
    134141way[     boundary=administrative][!admin_level],
     
    246253}
    247254
    248 /* {0.tag} together with {1.key}, see #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888 */
     255/* {0.tag} together with {1.key}, see #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888, #20530 */
    249256*[power=plant][/^generator:/],
    250257*[power=generator][/^plant:/],
     
    256263*[amenity=vending_machine][shop],
    257264*[noname?][name],
     265*[actuator][handle][actuator !~ /(^|;)manual(;|$)/],
     266*[mechanical_driver][handle][mechanical_driver !~ /(^|;)manual(;|$)/],
    258267way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][oneway:bicycle!=no][oneway:psv!=no],
    259268way[oneway=yes][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][oneway:bicycle!=no][oneway:psv!=no],
  • trunk/resources/data/validator/deprecated.mapcss

    r18188 r18230  
    22782278}
    22792279
     2280/* #20530 */
     2281*[man_made=pumping_rig][!pump_mechanism][!mechanical_driver][!mechanical_coupling] {
     2282  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2283  suggestAlternative: "man_made=petroleum_well";
     2284  suggestAlternative: "man_made=water_well";
     2285  fixAdd: "pump_mechanism=piston";
     2286  fixAdd: "mechanical_driver=combustion_engine";
     2287  fixAdd: "mechanical_coupling=nodding_donkey";
     2288  group: tr("deprecated tagging");
     2289  set pumping_ring_no_mech;
     2290}
     2291*[man_made=pumping_rig]!.pumping_ring_no_mech {
     2292  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2293  suggestAlternative: "man_made=petroleum_well";
     2294  suggestAlternative: "man_made=water_well";
     2295  group: tr("deprecated tagging");
     2296}
     2297*[pump:type=beam_pump][!pump_mechanism][!mechanical_driver][!mechanical_coupling] {
     2298  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2299  suggestAlternative: "pump_mechanism";
     2300  fixRemove: "pump:type";
     2301  fixAdd: "pump_mechanism=piston";
     2302  fixAdd: "mechanical_driver=combustion_engine";
     2303  fixAdd: "mechanical_coupling=nodding_donkey";
     2304  group: tr("deprecated tagging");
     2305  set beam_pump_no_mech
     2306}
     2307*[pump:type]!.beam_pump_no_mech {
     2308  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2309  suggestAlternative: "pump_mechanism";
     2310  group: tr("deprecated tagging");
     2311}
     2312*[substance=heat] {
     2313  throwWarning: tr("{0} is deprecated", "{0.tag}");
     2314  suggestAlternative: "substance=hot_water";
     2315  suggestAlternative: "substance=steam";
     2316  group: tr("deprecated tagging");
     2317}
     2318
    22802319/* #20959 */
    22812320*[landuse=school] {
  • trunk/resources/data/validator/ignoretags.cfg

    r18220 r18230  
    174174K:bicycle=dismount
    175175K:wall=no
    176 K:man_made=petroleum_well
    177176K:man_made=yes
    178177K:man_made=clearcut
     
    705704E:role
    706705E:levels
     706K:man_made=pumping_rig
     707E:pump:type
     708K:substance=heat
    707709;
    708710; Tags not yet decided (to remove from this section when added or moved up when deprecated)
Note: See TracChangeset for help on using the changeset viewer.