Changeset 11989 in josm for trunk/data


Ignore:
Timestamp:
2017-04-23T22:55:45+02:00 (2 years ago)
Author:
stoecker
Message:

add support for type=building relation and support variable role names using regexp (level_0, level_1, ...)

Location:
trunk/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r11980 r11989  
    61086108            <item name="Bunker" name_context="golf" icon="presets/sport/golf/bunker.svg" type="closedway" preset_name_label="true">
    61096109                <link href="http://wiki.openstreetmap.org/wiki/Tag:golf=bunker"
     6110                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:golf=bunker"
    61106111                  ja.href="http://wiki.openstreetmap.org/wiki/JA:Tag:golf=bunker" />
    61116112                <space />
     
    61516152            <item name="Fairway" name_context="golf" icon="presets/sport/golf/fairway.svg" type="closedway,multipolygon" preset_name_label="true">
    61526153                <link href="http://wiki.openstreetmap.org/wiki/Tag:golf=fairway"
     6154                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:golf=fairway"
    61536155                  ja.href="http://wiki.openstreetmap.org/wiki/JA:Tag:golf=fairway" />
    61546156                <space />
     
    74597461        </item> <!-- Power Transformer -->
    74607462        <item name="Power Switchgear" icon="presets/power/switchgear.svg" type="closedway" preset_name_label="true">
    7461             <link href="http://wiki.openstreetmap.org/wiki/Tag:power=switchgear"
    7462                   de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:power=switchgear" />
     7463            <link href="http://wiki.openstreetmap.org/wiki/Tag:power=switch"
     7464                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:power=switch"
     7465                  fr.href="http://wiki.openstreetmap.org/wiki/FR:Tag:power=switch" />
    74637466            <space />
    74647467            <label text="(Please only use this tag if more detailed mapping using busbars and bays is impossible!)" />
     
    1095810961            </roles>
    1095910962        </item> <!-- Boundary -->
     10963        <item name="Building" icon="presets/landmark/building.svg" type="relation" preset_name_label="true">
     10964            <link href="http://wiki.openstreetmap.org/wiki/Relation:building"
     10965                  ja.href="http://wiki.openstreetmap.org/wiki/JA:Relation:building"
     10966                  ru.href="http://wiki.openstreetmap.org/wiki/RU:Relation:building"
     10967                  uk.href="http://wiki.openstreetmap.org/wiki/Uk:Relation:building" />
     10968            <key key="type" value="building" />
     10969            <preset_link preset_name="Building" />
     10970            <preset_link preset_name="Entrance" />
     10971            <preset_link preset_name="Building part" />
     10972            <roles>
     10973                <role key="outline" text="Outline of building" requisite="required" type="way,closedway,multipolygon" />
     10974                <role key="part" text="Inner segment" requisite="required" type="way,closedway" />
     10975                <role key="ridge" text="Roof ridge" requisite="optional" type="way,closedway" />
     10976                <role key="edge" text="Roof edge" requisite="optional" type="way,closedway" />
     10977                <role key="entrance" text="Entrance" requisite="optional" type="node" />
     10978                <role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />
     10979            </roles>
     10980        </item> <!-- Building -->
    1096010981        <item name="Site" type="relation" preset_name_label="true">
    1096110982            <link href="http://wiki.openstreetmap.org/wiki/Relation:site" />
  • trunk/data/tagging-preset.xsd

    r11812 r11989  
    314314        <attribute name="count" type="integer" />
    315315        <attribute name="member_expression" type="string" />
     316        <attribute name="regexp" type="boolean" />
    316317        <anyAttribute processContents="skip" />
    317318    </complexType>
Note: See TracChangeset for help on using the changeset viewer.