Ticket #20421: josm_20421.patch
| File josm_20421.patch, 7.8 KB (added by , 3 days ago) |
|---|
-
resources/data/defaultpresets.xml
6619 6619 <space /> 6620 6620 <key key="pipeline" value="substation" /> 6621 6621 <text key="name" text="Name" /> 6622 <combo key="substation" text=" Type" values="compression,distribution,field_gathering,inspection_gauge,measurement,valve,valve_group" values_context="pipeline" values_searchable="true" />6622 <combo key="substation" text="Role of substation" values="compression,distribution,field_gathering,inspection_gauge,measurement,valve,valve_group" values_context="pipeline" values_searchable="true" /> 6623 6623 <reference ref="ref_operator" /> 6624 6624 <reference ref="substance" /> 6625 6625 </item> <!-- Pipeline Substation --> … … 7127 7127 <space /> 7128 7128 <key key="power" value="substation" /> 7129 7129 <text key="name" text="Name" /> 7130 <combo key="substation" text=" Type of substation" values="compensation,converter,distribution,industrial,minor_distribution,traction,transition,transmission" values_context="power" />7130 <combo key="substation" text="Role of substation" values="compensation,converter,distribution,industrial,minor_distribution,traction,transition,transmission" values_context="power" /> 7131 7131 <reference ref="power_loc" /> 7132 7132 <reference ref="voltage_frequency" /> 7133 7133 <reference ref="ref_operator" /> … … 7141 7141 <link wiki="Tag:power=transformer" /> 7142 7142 <space /> 7143 7143 <key key="power" value="transformer" /> 7144 <combo key="transformer" text=" Type of transformer" values="auxiliary,converter,distribution,generator,main,phase_angle_regulator,yes" match="key" values_context="power" />7144 <combo key="transformer" text="Nature of transformer" values="auxiliary,converter,distribution,generator,main,phase_angle_regulator,yes" match="key" values_context="power" /> 7145 7145 <reference ref="power_loc" /> 7146 7146 <reference ref="transformer_voltage_frequency" /> 7147 7147 <reference ref="ref_operator" /> … … 7298 7298 <reference ref="power_pole" /> 7299 7299 <space /> 7300 7300 <label text="Transformer Attributes:" /> 7301 <key key="transformer" value="distribution" match="key !" />7301 <key key="transformer" value="distribution" match="keyvalue!" /> 7302 7302 <reference ref="transformer_voltage_frequency" /> 7303 7303 <reference ref="optional_transformer_rating_phases_devices_windings" /> 7304 7304 </item> <!-- Pole with Transformer --> 7305 <item name="Pole with Substation" icon="presets/power/pole_transformer.svg" type="node" preset_name_label="true"> 7306 <link wiki="Tag:power=pole" /> 7307 <space /> 7308 <key key="power" value="pole" /> 7309 <label text="Pole Attributes:" /> 7310 <reference ref="power_pole" /> 7311 <space /> 7312 <label text="Substation Attributes:" /> 7313 <combo key="substation" text="Role of substation" values="industrial,minor_distribution" match="key!" /> 7314 <space /> 7315 <label text="Transformer Attributes:" /> 7316 <combo key="transformer" text="Nature of transformer" values="main" match="none" /> 7317 <reference ref="transformer_voltage_frequency" /> 7318 <reference ref="optional_transformer_rating_phases_devices_windings" /> 7319 </item> <!-- Pole with Substation --> 7305 7320 <item name="Catenary mast" icon="presets/power/catenary_mast.svg" type="node" preset_name_label="true"> 7306 7321 <link wiki="Tag:power=catenary_mast" /> 7307 7322 <space /> -
resources/data/validator/combinations.mapcss
148 148 149 149 /* {0.key} without {1.tag} or {2.tag} */ 150 150 *[bridge:movable ][bridge!=movable][man_made!=bridge], 151 *[substation ][power!=substation][pipeline!=substation],152 151 *[reservoir_type ][landuse!=reservoir][water!=reservoir], 153 152 way[waterway=pressurised ][tunnel!=flooded][man_made!=pipeline] { 154 153 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.tag}", "{2.tag}"); … … 155 154 group: tr("missing tag"); 156 155 } 157 156 158 /* {0.key} without {1.tag}, {2.tag} or {3.tag}, #15107, #20241 */157 /* {0.key} without {1.tag}, {2.tag} or {3.tag}, #15107, #20241, #20421 */ 159 158 *[iata ][aeroway!=aerodrome][aeroway!=heliport][aeroway!=helipad], 160 *[icao ][aeroway!=aerodrome][aeroway!=heliport][aeroway!=helipad] { 159 *[icao ][aeroway!=aerodrome][aeroway!=heliport][aeroway!=helipad], 160 *[substation ][power!=substation][power!~/pole|tower/][pipeline!=substation] { 161 161 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.tag}", "{2.tag}", "{3.tag}"); 162 162 group: tr("missing tag"); 163 163 } … … 1056 1057 assertNoMatch: "relation piste:type=nordic piste:grooming=classic"; 1057 1058 } 1058 1059 1060 /* #20421 */ 1061 *[substation][transformer=distribution] { 1062 throwWarning: tr("{0} together with {1}", "{1.tag}", "{0.key}"); 1063 suggestAlternative: "transformer=main"; 1064 group: tr("suspicious tag combination"); 1065 fixAdd: "transformer=main" 1066 } 1067 1059 1068 /* #21836 */ 1060 1069 *[voltage:primary][voltage:secondary][transformer=generator][tag("voltage:secondary")<tag("voltage:primary")] { 1061 1070 throwWarning: tr("{0} is lower than {1} on {2}.", "{1.key}", "{0.key}", "{2.tag}"); -
resources/data/validator/deprecated.mapcss
2332 2332 fixChangeKey: "service:bicycle:chaintool => service:bicycle:chain_tool"; 2333 2333 } 2334 2334 2335 /* #20421 */ 2336 *[transformer=minor_distribution] { 2337 throwWarning: tr("{0} is deprecated", "{1.tag}"); 2338 suggestAlternative: "transformer=distribution"; 2339 group: tr("deprecated tagging"); 2340 fixAdd: "transformer=distribution"; 2341 } 2342 2343 *[transformer=traction] { 2344 throwWarning: tr("{0} is deprecated", "{0.tag}"); 2345 suggestAlternative: "transformer=main"; 2346 group: tr("deprecated tagging"); 2347 fixAdd: "transformer=main"; 2348 } 2349 2350 *[transformer=auto] { 2351 throwWarning: tr("{0} is deprecated", "{0.tag}"); 2352 suggestAlternative: "transformer=* + windings:auto=yes"; 2353 group: tr("deprecated tagging"); 2354 fixRemove: "transformer"; 2355 fixAdd: "windings:auto=yes"; 2356 } 2357 2335 2358 /* #20434 */ 2336 2359 *[building:roof:shape] { 2337 2360 throwWarning: tr("{0} is deprecated", "{0.key}"); -
resources/data/validator/geometry.mapcss
429 429 throwWarning: tr("Ferry route is not connected to a ferry terminal or branches."); 430 430 } 431 431 432 /* 20421 */ 433 area[power=substation] ⊇ *[transformer=distribution] { 434 throwWarning: tr("A distribution transformer shouldn't be contained in a substation."); 435 suggestAlternative: "transformer=main"; 436 fixAdd: "transformer=main"; 437 } 438 432 439 /* #21801 */ 433 440 way[railway][railway !~ /^(turntable|traverser|platform_edge|roundhouse|workshop|platform)$/] > node[/railway$/ !~ /^(switch|railway_crossing)$/][count(parent_osm_primitives("railway")) > 2]:connection, 434 441 way[railway][railway !~ /^(turntable|traverser|platform_edge|roundhouse|workshop|platform)$/] >[index!=1][index!=-1] node[/railway$/ !~ /^(switch|railway_crossing)$/][count(parent_osm_primitives("railway")) == 2]:connection {
