Changeset 5614 in josm for trunk/data/defaultpresets.xml


Ignore:
Timestamp:
2012-12-06T22:54:00+01:00 (7 years ago)
Author:
simon04
Message:

see #8255 - suggest roles when adding objects to a relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r5611 r5614  
    8989  count: how often can the role occur (if not given unlimited number is assumed)
    9090  type: the data types - way,node,relation,closedway (separated by comma)
     91  member_expression: an expression (cf. search dialog) for objects of this role
    9192
    9293 presets: For external files <presets> should have following attributes:
     
    24262427            <roles>
    24272428                <role key="" text="route segment" requisite="required" type="way" />
    2428                 <role key="stop" text="stop position" requisite="optional" type="node" />
    2429                 <role key="stop_exit_only" text="stop position (exit only)" requisite="optional" type="node" />
    2430                 <role key="stop_entry_only" text="stop position (entry only)" requisite="optional" type="node" />
    2431                 <role key="platform" text="platform" requisite="optional" type="node,way,closedway" />
    2432                 <role key="platform_exit_only" text="platform (exit only)" requisite="optional" type="node,way,closedway" />
    2433                 <role key="platform_entry_only" text="platform (entry only)" requisite="optional" type="node,way,closedway" />
     2429                <role key="stop" text="stop position" requisite="optional" type="node" member_expression="public_transport=stop_position" />
     2430                <role key="stop_exit_only" text="stop position (exit only)" requisite="optional" type="node" member_expression="public_transport=stop_position" />
     2431                <role key="stop_entry_only" text="stop position (entry only)" requisite="optional" type="node" member_expression="public_transport=stop_position" />
     2432                <role key="platform" text="platform" requisite="optional" type="node,way,closedway" member_expression="public_transport=platform" />
     2433                <role key="platform_exit_only" text="platform (exit only)" requisite="optional" type="node,way,closedway" member_expression="public_transport=platform" />
     2434                <role key="platform_entry_only" text="platform (entry only)" requisite="optional" type="node,way,closedway" member_expression="public_transport=platform" />
    24342435            </roles>
    24352436        </item>
     
    24472448            </optional>
    24482449            <roles>
    2449                 <role key="" text="route variant/direction (at least 2)" requisite="required" type="relation"/> <!-- FIXME: at least 2 members are required -->
     2450                <role key="" text="route variant/direction (at least 2)" requisite="required" type="relation" member_expression="type=route"/> <!-- FIXME: at least 2 members are required -->
    24502451            </roles>
    24512452        </item>
     
    24642465            </optional>
    24652466            <roles>
    2466                 <role key="stop" text="Stop Position" requisite="optional" type="node"/>
    2467                 <role key="platform" text="Platform" requisite="optional" type="node,way,closedway"/>
    2468                 <role key="" text="Station or amenities" requisite="optional" type="node,way,closedway"/>
     2467                <role key="stop" text="Stop Position" requisite="optional" type="node" member_expression="public_transport=stop_position"/>
     2468                <role key="platform" text="Platform" requisite="optional" type="node,way,closedway" member_expression="public_transport=platform"/>
     2469                <role key="" text="Station or amenities" requisite="optional" type="node,way,closedway" member_expression="amenity|public_transport=station"/>
    24692470            </roles>
    24702471        </item>
     
    59065907            <text key="name" text="Street name" />
    59075908            <roles>
    5908                 <role key="street" text="street" requisite="required" type="way" />
    5909                 <role key="house" text="house" requisite="required" type="node,way,closedway,relation" />
     5909                <role key="street" text="street" requisite="required" type="way" member_expression="highway &quot;addr:street&quot;" />
     5910                <role key="house" text="house" requisite="required" type="node,way,closedway,relation" member_expression="&quot;addr:housenumber&quot;" />
    59105911            </roles>
    59115912        </item>
     
    59635964            </optional>
    59645965            <roles>
    5965                 <role key="" text="waterways (no riverbank)" requisite="optional" type="way" />
    5966                 <role key="main_stream" text="waterways (no riverbank)" requisite="optional" type="way" />
    5967                 <role key="side_stream" text="branch waterways (no riverbank)" requisite="optional" type="way" />
     5966                <role key="" text="waterways (no riverbank)" requisite="optional" type="way" member_expression="waterway -waterway:riverbank" />
     5967                <role key="main_stream" text="waterways (no riverbank)" requisite="optional" type="way" member_expression="waterway -waterway:riverbank" />
     5968                <role key="side_stream" text="branch waterways (no riverbank)" requisite="optional" type="way" member_expression="waterway -waterway:riverbank"/>
    59685969                <role key="spring" text="spring of waterway" requisite="optional" type="node" />
    59695970            </roles>
Note: See TracChangeset for help on using the changeset viewer.