Changeset 4651 in josm for trunk/data


Ignore:
Timestamp:
2011-12-10T23:27:34+01:00 (8 years ago)
Author:
simon04
Message:

see #5218 - add several relation presets: type={site,enforcement,route_master,street,destination_sign,waterway}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r4584 r4651  
    52195219            </roles>
    52205220        </item>
     5221        <item name="Site" type="relation">
     5222            <link href="http://wiki.openstreetmap.org/wiki/Relations/Proposed/Site"/>
     5223            <label text="Edit Site" />
     5224            <key key="type" value="site" />
     5225            <text key="name" text="Site name" default="" delete_if_empty="true" />
     5226            <roles>
     5227                <role key="label" text="where to place the label" requisite="optional" type="node" />
     5228                <role key="perimeter" text="perimeter of the site" requisite="optional" type="closedway,relation" />
     5229                <role key="entrance" text="entrances to the site, on the perimeter" requisite="optional" type="node" />
     5230                <role key="" text="members of site" requisite="optional" type="node,way,closedway,relation" />
     5231            </roles>
     5232        </item>
     5233        <separator/>
    52215234        <item name="Turn restriction" icon="styles/standard/vehicle/restriction/turn_restrictions/no_u_turn.png" type="relation">
    52225235            <link href="http://wiki.openstreetmap.org/wiki/Relation:restriction"
     
    52395252            </roles>
    52405253        </item>
     5254        <item name="Enforcement" icon="presets/speed_camera.png" type="relation">
     5255            <link href="http://wiki.openstreetmap.org/wiki/Relation:enforcement"/>
     5256            <label text="Edit Enforcement" />
     5257            <key key="type" value="enforcement" />
     5258            <combo key="enforcement" text="Type of enforcement" values="maxheight,maxweight,maxspeed,mindistance,traffic_signals,check " default="" delete_if_empty="true" />
     5259            <text key="maxheight" text="Max. height (meters, only if enforcement=maxheight)" default="" delete_if_empty="true" />
     5260            <text key="maxweight" text="Max. weight (tonnes, only if enforcement=maxweight)" default="" delete_if_empty="true" />
     5261            <text key="maxspeed" text="Max. speed (km/h, only if enforcement=maxspeed)" default="" delete_if_empty="true" />
     5262            <roles>
     5263                <role key="device" text="location of enforcement device" requisite="required" type="node,way,closedway" />
     5264                <role key="from" text="node on way where enforcement starts" requisite="required" type="node" />
     5265                <role key="to" text="where enforcement ends" requisite="optional" type="node" />
     5266                <role key="force" text="traffic light or barrier that stops you" requisite="optional" type="node" />
     5267            </roles>
     5268        </item>
     5269        <separator/>
    52415270        <item name="Route" icon="presets/path.png" type="relation">
    52425271            <link href="http://wiki.openstreetmap.org/wiki/Relation:route"
     
    52555284            <text key="description" text="Description" default="" delete_if_empty="true" />
    52565285            <optional>
     5286                <text key="from" text="From (initial stop)" default="" delete_if_empty="true" />
     5287                <text key="to" text="To (terminal stop)" default="" delete_if_empty="true" />
    52575288                <text key="network" text="Network" default="" delete_if_empty="true" />
    52585289                <text key="operator" text="Operator" default="" delete_if_empty="true" />
     
    52675298                <role key="forward_stop" text="forward halt point" requisite="optional" type="node" />
    52685299                <role key="backward_stop" text="backward halt point" requisite="optional" type="node" />
     5300                <role key="platform" text="platform belonging to route" requisite="optional" type="node,way,closedway" />
     5301            </roles>
     5302        </item>
     5303        <item name="Route master" icon="presets/path.png" type="relation">
     5304            <link href="http://wiki.openstreetmap.org/wiki/Relation:route_master"/>
     5305            <label text="Edit Route master" />
     5306            <key key="type" value="route_master" />
     5307            <combo key="route" text="Route type" values="train,subway,monorail,tram,bus,trolleybus,aerialway,ferry" default="" delete_if_empty="true" />
     5308            <text key="name" text="Name" default="" delete_if_empty="true" />
     5309            <text key="ref" text="Reference" default="" delete_if_empty="true" />
     5310            <optional>
     5311                <text key="network" text="Network" default="" delete_if_empty="true" />
     5312                <text key="operator" text="Operator" default="" delete_if_empty="true" />
     5313                <text key="color" text="Color (hex)" default="" delete_if_empty="true" />
     5314            </optional>
     5315            <roles>
     5316              <role key="" text="route variant/direction (at least 2)" requisite="required" type="relation" /><!-- FIXME: at least 2 members are required -->
    52695317            </roles>
    52705318        </item>
     
    53145362            </roles>
    53155363        </item>
     5364        <separator/>
    53165365        <item name="Associated street" icon="presets/addresses.png" type="relation">
    53175366            <link href="http://wiki.openstreetmap.org/wiki/Relation:associatedStreet"/>
     
    53245373            </roles>
    53255374        </item>
     5375        <item name="Street" type="relation">
     5376            <link href="http://wiki.openstreetmap.org/wiki/Relations/Proposed/Street"/>
     5377            <label text="Edit Street" />
     5378            <key key="type" value="street" />
     5379            <text key="name" text="Name" default="" delete_if_empty="true" />
     5380            <roles>
     5381                <role key="street" text="ways being part of street" requisite="required" type="way" />
     5382                <role key="address" text="addressed belonging to the street" requisite="optional" type="node,way,closedway" />
     5383                <role key="house" text="houses belonging to the street" requisite="optional" type="node,way,closedway" />
     5384                <role key="associated" text="anything related to the street" requisite="optional" type="node,way,closedway" />
     5385            </roles>
     5386        </item>
     5387        <item name="Destination sign" icon="presets/guidepost.png" type="relation">
     5388            <link href="http://wiki.openstreetmap.org/wiki/Relation:destination_sign"/>
     5389            <label text="Edit Destination sign" />
     5390            <key key="type" value="destination_sign" />
     5391            <text key="destination" text="Destination written on sign (w/o distance)" default="" delete_if_empty="true" />
     5392            <text key="distance" text="Distance (km)" default="" delete_if_empty="true" />
     5393            <text key="time" text="Time (hh:mm, for trekking)" default="" delete_if_empty="true" />
     5394            <text key="colour:back" text="Colour of background" default="" delete_if_empty="true" />
     5395            <text key="colour:text" text="Colour of text" default="" delete_if_empty="true" />
     5396            <text key="colour:arrow" text="Colour of border/arrow" default="" delete_if_empty="true" />
     5397            <roles>
     5398                <role key="from" text="last way before junction" requisite="optional" type="node,way" />
     5399                <role key="intersection" text="node of the intersection" requisite="optional" count="1" type="node" />
     5400                <role key="to" text="first way after junction" requisite="required" count="1" type="node,way" />
     5401                <role key="sign" text="position of sign" requisite="optional" type="node" />
     5402            </roles>
     5403        </item>
     5404        <separator/>
     5405        <item name="Waterway" icon="presets/river.png" type="relation">
     5406            <link href="http://wiki.openstreetmap.org/wiki/Relations/Proposed/Waterway"/>
     5407            <label text="Edit Waterway" />
     5408            <key key="type" value="waterway" />
     5409            <combo key="waterway" text="Subtype of waterway (largest one of members)" values="river,stream,canal,drain,ditch" default="" delete_if_empty="true" />
     5410            <text key="name" text="Name" default="" delete_if_empty="true" />
     5411            <optional>
     5412                <text key="destination" text="Name of river/sea/ocean" default="" delete_if_empty="true" />
     5413                <text key="ref" text="Reference" default="" delete_if_empty="true" />
     5414                <text key="ref:sandre" text="Reference Sandre (FR)" default="" delete_if_empty="true" />
     5415                <text key="ref:fgkz" text="Reference FGKZ (DE)" default="" delete_if_empty="true" />
     5416                <text key="ref:regine" text="Reference REGINE (NO)" default="" delete_if_empty="true" />
     5417                <text key="ref:gnis" text="Reference GNIS (USA)" default="" delete_if_empty="true" />
     5418                <text key="ref:gnbc" text="Reference GNBC (CA)" default="" delete_if_empty="true" />
     5419                <text key="wikipedia" text="Wikipedia" default="" delete_if_empty="true" />
     5420            </optional>
     5421            <roles>
     5422                <role key="main_stream" text="waterways (no riverbank)" requisite="required" type="way" />
     5423                <role key="side_stream" text="branch waterways (no riverbank)" requisite="optional" type="way" />
     5424                <role key="spring" text="spring of waterway" requisite="optional" type="node" />
     5425            </roles>
     5426        </item>
    53265427    </group> <!-- Relations -->
    53275428</presets>
Note: See TracChangeset for help on using the changeset viewer.