Changeset 15454 in josm


Ignore:
Timestamp:
2019-10-11T20:51:47+02:00 (5 years ago)
Author:
Klumbumbus
Message:

fix #17984 - deprecate tower:type=anchor|suspension in favor of line_attachment=anchor|suspension

Location:
trunk/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r15453 r15454  
    373373        <text key="height" text="Height (meters)" />
    374374        <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     375        <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    375376        <check key="location:transition" text="Location transition" disable_off="true" />
    376377        <reference ref="ref_operator" />
     
    53785379            <key key="power" value="terminal" />
    53795380            <optional>
     5381                <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    53805382                <text key="ref" text="Reference" />
    53815383                <text key="operator" text="Operator" />
     
    53925394            <reference ref="ref_operator" />
    53935395            <combo key="design" text="Portal design" values="portal,portal_two-level,portal_three-level" values_context="power" />
     5396            <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    53945397        </item> <!-- Power Portal -->
    53955398        <item name="Power Tower" icon="presets/power/tower.svg" type="node" preset_name_label="true">
     
    54035406            <reference ref="ref_operator" />
    54045407            <optional>
    5405                 <combo key="tower:type" text="Tower type" values="suspension,anchor,termination,branch,transposing,crossing,transition" text_context="power" values_context="power" />
     5408                <combo key="tower:type" text="Tower type" values="termination,branch,transposing,crossing,transition" text_context="power" values_context="power" />
    54065409                <combo key="branch:type" text="Branch tower type" values="tap,split,loop,cross" values_context="power" />
    54075410                <combo key="design" text="Tower design" values="one-level,two-level,donau,three-level,barrel,asymmetric,triangle,flag,donau;one-level,four-level,six-level,nine-level,delta,delta_two-level,y-frame,x-frame,h-frame,guyed_h-frame,portal,portal_two-level,portal_three-level,guyed_v-frame,bipole,monopolar" values_context="power" />
     5411                <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    54085412                <check key="triple_tower" text="Triple tower" />
    54095413                <check key="design:incomplete" text="Incomplete tower" />
     
    54565460            <space />
    54575461            <key key="power" value="insulator" />
     5462            <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    54585463            <reference ref="ref_operator" />
    54595464        </item> <!-- Insulator -->
  • trunk/data/validator/deprecated.mapcss

    r15435 r15454  
    18021802  group: tr("deprecated tagging");
    18031803}
     1804
     1805/* #17984 */
     1806*[tower:type=anchor],
     1807*[tower:type=suspension] {
     1808  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1809  suggestAlternative: concat("line_attachment=", "{0.value}");
     1810  fixChangeKey: "tower:type => line_attachment";
     1811  group: tr("deprecated tagging");
     1812}
  • trunk/data/validator/geometry.mapcss

    r15413 r15454  
    9696
    9797/* {0} on a way, should be a node */
     98way[line_attachment],
    9899way[emergency=fire_hydrant],
    99100way[entrance],
Note: See TracChangeset for help on using the changeset viewer.