Ticket #20270: 20270.2.patch

File 20270.2.patch, 12.8 KB (added by taylor.smock, 3 years ago)

Update to current JOSM, add preset links

  • resources/data/defaultpresets.xml

    diff --git a/resources/data/defaultpresets.xml b/resources/data/defaultpresets.xml
    index b5cff550a2..ac0e7e8c5f 100644
    a b  
    411411            <reference ref="voltage_frequency" />
    412412        </optional>
    413413    </chunk>
    414     <chunk id="power_pole">
     414    <chunk id="utilities">
     415        <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true"/>
     416    </chunk>
     417    <chunk id="pole">
    415418        <text key="height" text="Height (meters)" length="7" />
    416419        <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     420        <reference ref="ref_operator" />
     421    </chunk>
     422    <chunk id="power_pole">
    417423        <combo key="line_attachment" text="Line attachment" values="anchor,pin,pulley,suspension" values_context="power" />
    418424        <combo key="line_management" text="Line management" values="branch,cross,split,straight,termination,transition,transpose" values_context="Line management" />
    419425        <check key="location:transition" text="Location transition" disable_off="true" />
    420         <reference ref="ref_operator" />
     426        <reference ref="pole" />
    421427    </chunk>
    422428    <chunk id="rating_phases">
    423429        <combo key="rating" text="Power rating (kVA/MVA)" values="2700 kVA,12500 kVA,15 MVA,50 MVA,100 MVA" />
     
    57835789            <key key="man_made" value="embankment" />
    57845790        </item> <!-- Embankment -->
    57855791        <separator/>
     5792        <item name="Utility Pole" icon="presets/tower/pole.svg" type="node" preset_name_label="true">
     5793            <link wiki="Tag:man_made=utility_pole" />
     5794            <space />
     5795            <key key="man_made" value="utility_pole" />
     5796            <reference ref="pole" />
     5797            <reference ref="utilities" />
     5798            <preset_link preset_name="Pole" />
     5799        </item> <!-- Utility Pole -->
    57865800        <item name="Street Lamp" icon="presets/misc/streetlamp.svg" type="node" preset_name_label="true">
    57875801            <link wiki="Tag:highway=street_lamp" />
    57885802            <space />
     
    60446058            <link wiki="Key:marker" />
    60456059            <space />
    60466060            <combo key="marker" text="Type" values="aerial,ground,pedestal,plate,post,stone" values_context="marker" match="key" />
    6047             <combo key="utility" text="Utility" values="chemical,gas,heating,hydrant,oil,power,sewerage,street_lighting,telecom,television,waste,water" values_searchable="true" />
     6061            <reference ref="utilities" />
    60486062            <optional>
    60496063                <reference ref="ref_operator" />
    60506064                <combo key="material" text="Material" values="concrete,metal,plastic,steel,stone,wood" />
     
    64996513            <space />
    65006514            <key key="power" value="pole" />
    65016515            <reference ref="power_pole" />
     6516            <preset_link preset_name="Utility Pole" />
    65026517        </item> <!-- Pole -->
    65036518        <item name="Pole with Switch" icon="presets/power/pole_switch.svg" type="node" preset_name_label="true">
    65046519            <link wiki="Tag:power=pole" />
  • new file resources/images/presets/tower/pole.svg

    diff --git a/resources/images/presets/tower/pole.svg b/resources/images/presets/tower/pole.svg
    new file mode 100644
    index 0000000000..a65e574886
    - +  
     1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
     2<svg
     3   xmlns:dc="http://purl.org/dc/elements/1.1/"
     4   xmlns:cc="http://creativecommons.org/ns#"
     5   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     6   xmlns:svg="http://www.w3.org/2000/svg"
     7   xmlns="http://www.w3.org/2000/svg"
     8   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
     9   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
     10   width="12"
     11   height="16"
     12   viewBox="0 0 12 16"
     13   id="svg4264"
     14   version="1.1"
     15   inkscape:version="1.0.1 (c497b03c, 2020-09-10)"
     16   sodipodi:docname="pole.svg">
     17  <defs
     18     id="defs4266">
     19    <marker
     20       inkscape:stockid="EmptyTriangleInL"
     21       orient="auto"
     22       refY="0"
     23       refX="0"
     24       id="EmptyTriangleInL"
     25       style="overflow:visible"
     26       inkscape:isstock="true">
     27      <path
     28         id="path4298"
     29         d="m 5.77,0 -8.65,5 0,-10 8.65,5 z"
     30         style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
     31         transform="matrix(-0.8,0,0,-0.8,4.8,0)"
     32         inkscape:connector-curvature="0" />
     33    </marker>
     34    <marker
     35       inkscape:stockid="Arrow1Lstart"
     36       orient="auto"
     37       refY="0"
     38       refX="0"
     39       id="marker4778"
     40       style="overflow:visible"
     41       inkscape:isstock="true">
     42      <path
     43         id="path4780"
     44         d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
     45         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
     46         transform="matrix(0.8,0,0,0.8,10,0)"
     47         inkscape:connector-curvature="0" />
     48    </marker>
     49    <marker
     50       inkscape:stockid="Arrow1Lstart"
     51       orient="auto"
     52       refY="0"
     53       refX="0"
     54       id="marker4657"
     55       style="overflow:visible"
     56       inkscape:isstock="true">
     57      <path
     58         id="path4659"
     59         d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
     60         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
     61         transform="matrix(0.8,0,0,0.8,10,0)"
     62         inkscape:connector-curvature="0" />
     63    </marker>
     64    <marker
     65       style="overflow:visible"
     66       inkscape:stockid="InfiniteLineStart"
     67       id="InfiniteLineStart"
     68       refX="0"
     69       refY="0"
     70       orient="auto"
     71       inkscape:isstock="true">
     72      <g
     73         id="g4391"
     74         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
     75         transform="translate(-13,0)">
     76        <circle
     77           id="circle4393"
     78           r="0.80000001"
     79           cy="0"
     80           cx="3"
     81           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
     82        <circle
     83           id="circle4395"
     84           r="0.80000001"
     85           cy="0"
     86           cx="6.5"
     87           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
     88        <circle
     89           id="circle4397"
     90           r="0.80000001"
     91           cy="0"
     92           cx="10"
     93           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
     94      </g>
     95    </marker>
     96    <marker
     97       inkscape:stockid="Arrow2Lstart"
     98       orient="auto"
     99       refY="0"
     100       refX="0"
     101       id="Arrow2Lstart"
     102       style="overflow:visible"
     103       inkscape:isstock="true">
     104      <path
     105         id="path4165"
     106         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
     107         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
     108         transform="matrix(1.1,0,0,1.1,1.1,0)"
     109         inkscape:connector-curvature="0" />
     110    </marker>
     111    <marker
     112       inkscape:stockid="Arrow1Mstart"
     113       orient="auto"
     114       refY="0"
     115       refX="0"
     116       id="Arrow1Mstart"
     117       style="overflow:visible"
     118       inkscape:isstock="true">
     119      <path
     120         id="path4153"
     121         d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
     122         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
     123         transform="matrix(0.4,0,0,0.4,4,0)"
     124         inkscape:connector-curvature="0" />
     125    </marker>
     126    <marker
     127       inkscape:stockid="Arrow1Lstart"
     128       orient="auto"
     129       refY="0"
     130       refX="0"
     131       id="Arrow1Lstart"
     132       style="overflow:visible"
     133       inkscape:isstock="true">
     134      <path
     135         id="path4147"
     136         d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
     137         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
     138         transform="matrix(0.8,0,0,0.8,10,0)"
     139         inkscape:connector-curvature="0" />
     140    </marker>
     141  </defs>
     142  <sodipodi:namedview
     143     id="base"
     144     pagecolor="#ffffff"
     145     bordercolor="#666666"
     146     borderopacity="1.0"
     147     inkscape:pageopacity="0.0"
     148     inkscape:pageshadow="2"
     149     inkscape:zoom="64"
     150     inkscape:cx="5.9515829"
     151     inkscape:cy="3.3437195"
     152     inkscape:document-units="px"
     153     inkscape:current-layer="layer1"
     154     showgrid="true"
     155     units="px"
     156     inkscape:snap-bbox="true"
     157     inkscape:bbox-paths="true"
     158     inkscape:bbox-nodes="true"
     159     inkscape:snap-bbox-edge-midpoints="true"
     160     inkscape:snap-bbox-midpoints="true"
     161     inkscape:snap-global="true"
     162     inkscape:object-paths="true"
     163     inkscape:snap-intersection-paths="true"
     164     inkscape:object-nodes="true"
     165     inkscape:snap-smooth-nodes="true"
     166     inkscape:snap-midpoints="true"
     167     inkscape:snap-object-midpoints="true"
     168     inkscape:snap-center="true"
     169     inkscape:snap-nodes="true"
     170     inkscape:snap-others="true"
     171     inkscape:snap-page="true"
     172     inkscape:document-rotation="0"
     173     inkscape:window-width="1920"
     174     inkscape:window-height="1027"
     175     inkscape:window-x="1920"
     176     inkscape:window-y="25"
     177     inkscape:window-maximized="1">
     178    <inkscape:grid
     179       type="xygrid"
     180       id="grid4137" />
     181  </sodipodi:namedview>
     182  <metadata
     183     id="metadata4269">
     184    <rdf:RDF>
     185      <cc:Work
     186         rdf:about="">
     187        <dc:format>image/svg+xml</dc:format>
     188        <dc:type
     189           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
     190        <dc:title />
     191        <cc:license
     192           rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
     193      </cc:Work>
     194      <cc:License
     195         rdf:about="http://creativecommons.org/publicdomain/zero/1.0/">
     196        <cc:permits
     197           rdf:resource="http://creativecommons.org/ns#Reproduction" />
     198        <cc:permits
     199           rdf:resource="http://creativecommons.org/ns#Distribution" />
     200        <cc:permits
     201           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
     202      </cc:License>
     203    </rdf:RDF>
     204  </metadata>
     205  <g
     206     inkscape:label="Camada 1"
     207     inkscape:groupmode="layer"
     208     id="layer1"
     209     transform="translate(0,-1036.3621)">
     210    <path
     211       style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.936;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
     212       d="m 4,1036.3621 v 2 H 3 v -2 H 0 v 6 h 4 v 10 h 4 v -10 h 4 v -6 H 9 v 2 H 8 v -2 z"
     213       id="path4218"
     214       inkscape:connector-curvature="0"
     215       sodipodi:nodetypes="ccccccccccccccccc" />
     216    <g
     217       id="g3382-9"
     218       transform="matrix(0,0.15384648,-0.35461025,0,155.24126,1020.1082)"
     219       style="fill:#000000;fill-opacity:1" />
     220    <path
     221       style="fill:none;fill-rule:evenodd;stroke:#8b4513;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
     222       d="m 6.0000008,1037.3621 0,15"
     223       id="path4282"
     224       inkscape:connector-curvature="0" />
     225    <path
     226       id="path4216"
     227       d="m 2,1039.3621 v -2 H 1 v 4 h 1 8 1 v -4 h -1 v 2 z"
     228       style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
     229       inkscape:connector-curvature="0"
     230       sodipodi:nodetypes="ccccccccccc" />
     231  </g>
     232</svg>