wiki:Presets/MastAndTower

source:trunk/resources/images/presets/tower/tower.svg Mast and Tower

A complete tagging preset for all kind of masts and towers.

Supported Tags

Main tags

Secondary tags

Additional tags

name=*, ref=*, operator=*, height=*, ele=*, material=*, access=*, fee=* and opening_hours=*

Notes

  • I'd love to use editable="false" on <combo /> but #6157 prevents it.
  • The two general presets should be excluded from preset links from Tags/Memberships panel if tower:type=* is present but this is not implemented, see #19012.
  • The <multiselect /> need to be one row bigger than values to get rid of the scrollbar, see #19013.

Help needed

  • Please, feel free to enhance and update the preset.
  • Due to #11392 translation is still only possible within the source code.
  • Still needs some nicer icons as vector graphic for minaret, monitoring and radar.

Preset Code

<?xml version="1.0" encoding="UTF-8"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
         icon="Tower_freestanding.svg"
         link="https://josm.openstreetmap.de/wiki/Presets/MastAndTower"
         shortdescription="Mast and tower"
         de.shortdescription="Mast und Turm"
         description="Adds a complete tagging preset for all kind of masts and towers. "
         de.description="Fügt eine vollständige Objektvorlage für alle Arten von Masten und Türmen hinzu. "
         author="skyper"
         version="0.2.32_2020-07-16"> 

    <!-- chunks -->
    <chunk id="extra">
        <text key="operator" text="Operator" />
        <text key="height" text="Height (in meters)" length="7" />
        <text key="ele" text="Elevation at the bottom (in meters)" />
        <combo key="material" text="Material" values="adobe,brick,concrete,glass,masonry,metal,plastic,reinforced_concrete,steel,stone,wood" values_searchable="true" />        
        <combo key="access" text="General access" values="yes,private,permissive,customers,no" values_sort="false" />
    </chunk>

    <chunk id="addr_contact">
        <preset_link preset_name="Address" />
        <preset_link preset_name="Contact (Schema with 'contact:*' Prefix)" />
    </chunk>
    
    <chunk id="name_ref_extra">
        <text key="name" text="Name" />
        <text key="ref" text="Reference" />
        <reference ref="extra" />
    </chunk>

    <chunk id="name_ref_extra_contact">
        <reference ref="name_ref_extra" />
        <reference ref="addr_contact" />
    </chunk>

    <chunk id="extra2_tw">
        <combo key="fee" text="Fee" delimiter="|" values="yes|no|06:00-20:00|Mo-Fr 09:00-18:00,Sa 08:00-14:00|May-Sep 09:30-12:30,14:15-19:30" values_sort="false" />
        <combo key="opening_hours" text="Opening Hours" delimiter="|" values="24/7|08:30-12:30,15:30-20:00|Sa-Su 00:00-24:00|Mo-Su 09:00-21:00|Mo-Sa 08:00-18:00|Mo-Fr 09:00-17:00|Mo-Fr 08:30-20:00; Sa,Su 08:00-15:00; PH off|Mo-Fr 08:30-20:00; Tu-Su 08:00-15:00; Sa 08:00-12:00|Mo-Su 08:00-18:00; Apr 10-15 off; Jun 08:00-14:00; Aug off; Dec 25 off|sunrise-sunset|Su 10:00+|week 01-53/2 Fr 09:00-12:00; week 02-52/2 We 09:00-12:00" values_no_i18n="true" values_sort="false" />
        <check key="historic" value_on="tower" text="Historic tower" disable_off="true" />
        <reference ref="addr_contact" />
    </chunk>

    <chunk id="detail_tw">
        <optional>
            <reference ref="name_ref_extra" />
            <reference ref="extra2_tw" />
        </optional>
    </chunk>

    <chunk id="tw_con_tw">
        <combo key="tower:construction" text="Construction" values_sort="false" values_searchable="true">
            <list_entry value="lattice" display_value="lattice" icon="tower_lattice.svg" />
            <list_entry value="freestanding" display_value="freestanding" icon="presets/tower/tower.svg" />
            <list_entry value="dome" display_value="Dome" icon="tower_dome.svg" />
            <list_entry value="dish" display_value="Dish" icon="tower_dish.svg" />
        </combo>
    </chunk>

    <chunk id="tw_con_tw_com">
        <combo key="tower:construction" text="Construction" values_sort="false" values_searchable="true">
            <list_entry value="lattice" display_value="lattice" icon="tower_lattice_communication.svg" />
            <list_entry value="freestanding" display_value="freestanding" icon="presets/tower/communication.svg" />
            <list_entry value="dome" display_value="Dome" icon="tower_dome.svg" />
            <list_entry value="dish" display_value="Dish" icon="tower_dish.svg" />
        </combo>
    </chunk>

    <chunk id="tw_con_mt">
        <combo key="tower:construction" text="Construction" values_sort="false" values_searchable="true">
            <list_entry value="guyed_lattice" display_value="guyed lattice" icon="presets/tower/mast.svg" />
            <list_entry value="guyed_tube" display_value="guyed tube" icon="presets/tower/mast.svg" />
            <list_entry value="freestanding" display_value="freestanding" icon="presets/tower/tower.svg" />
            <list_entry value="lattice" display_value="lattice" icon="tower_lattice.svg" />
        </combo>
    </chunk>

    <chunk id="tech">
        <multiselect key="technology" text="Technology" values="LTE; UMTS; GSM 900; GSM 1800" values_searchable="false"
                    values_sort="false" rows="5"/>
        <label text="Transmitting:" />
        <checkgroup columns="3">
            <check key="communication:mobile_phone" text="Mobile phone" />
            <check key="communication:television" text="Television" />
            <check key="communication:radio" text="Radio" />
            <check key="communication:microwave" text="Microwave" />
            <check key="communication:bos" text="BOS radio" />
            <check key="communication:gsm-r" text="GSM-R radio" />
        </checkgroup>
    </chunk>

    <chunk id="frequency">
        <text key="frequency" text="Frequency" />
    </chunk>

    <chunk id="name_ref_tech_extra">
        <reference ref="tech" />
        <reference ref="frequency" />
        <reference ref="name_ref_extra"/>
    </chunk>

    <chunk id="link_mast">
        <preset_link preset_name="General preset Mast" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
    </chunk>

    <chunk id="link_tower">
        <preset_link preset_name="General preset Tower" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
    </chunk>

    <chunk id="link_com_mast">
        <preset_link preset_name="Communication mast" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
    </chunk>

    <chunk id="link_antenna">
        <preset_link preset_name="Antenna " text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
    </chunk>

    <chunk id="link_telescope">
        <preset_link preset_name="Telescope" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
    </chunk>

    <!-- groups -->
    <group name="Mast and Tower" icon="presets/tower/tower.svg">

        <item name="Antenna " icon="presets/tower/antenna.svg" type="node" preset_name_label="true">
            <link wiki="Tag:man_made=antenna" />
            <key key="man_made" value="antenna" />
            <space />
                <reference ref="link_com_mast" />
                <reference ref="link_telescope" />
            <space />
            <optional>
                <reference ref="name_ref_tech_extra" />
                <reference ref="addr_contact" />
            </optional>
        </item>

        <group name="Mast" icon="presets/tower/mast.svg">

            <item name="General preset Mast" icon="presets/tower/mast.svg" type="node" preset_name_label="true">
                <link wiki="Tag:man_made=mast" />
                <space />
                <label text="Adding a general mast. Please use distinct presets if possible." />
                <space />
                <reference ref="link_tower" />
                <reference ref="link_antenna" />
                <reference ref="link_telescope" />
                <space />
                <key key="man_made" value="mast" />
                <multiselect key="tower:type" text="Tower type" values_searchable="true" values_sort="false" rows="7">
                    <list_entry value="communication" display_value="Communication" icon="presets/tower/mast_communication.svg" />
                    <list_entry value="lighting" display_value="Lighting" icon="presets/tower/mast_lighting.svg" />
                    <list_entry value="monitoring" display_value="Monitoring" icon="High-contrast-utilities-system-monitor.svg" 
                            icon_size="16" />
                    <list_entry value="observation" display_value="Observation" icon="presets/tower/observation.svg" />
                    <list_entry value="radar" display_value="Radar" icon="tower_dish.svg" icon_size="16" />
                    <list_entry value="siren" display_value="Siren" icon="presets/emergency/siren.svg" />
                </multiselect>
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_extra_contact" />
                </optional>
            </item>

            <separator />

            <item name="Communication mast" icon="presets/tower/mast_communication.svg" type="node" preset_name_label="true">
                <link wiki="Tag:tower:type=communication" />
                <key key="man_made" value="mast" />
                <key key="tower:type" value="communication" />
                <space />
                <preset_link preset_name="Small communication tower" text="For bigger constructions, use:" />
                <reference ref="link_antenna" />
                <reference ref="link_telescope" />
                <space />
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_tech_extra" />
                    <reference ref="addr_contact" />
                </optional>
            </item>

            <item name="Lighting mast" icon="presets/tower/mast_lighting.svg" type="node" preset_name_label="true">
                <link wiki="Tag:tower:type=lighting" />
                <space />
                <key key="man_made" value="mast" />
                <key key="tower:type" value="lighting" />
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_extra_contact" />
                </optional>
            </item>

            <item name="Monitoring mast" icon="High-contrast-utilities-system-monitor.svg" type="node" preset_name_label="true">
                <link wiki="Tag:tower:type=monitoring" />
                <space />
                <key key="man_made" value="mast" />
                <key key="tower:type" value="monitoring" />
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_extra" />
                </optional>
                <preset_link preset_name="Monitoring Station" />
                <reference ref="addr_contact" />
            </item>

            <item name="Radar mast" icon="tower_dish.svg" type="node" preset_name_label="true">
                <link wiki="Tag:tower:type=radar" />
                <space />
                <reference ref="link_com_mast" />
                <reference ref="link_antenna" />
                <reference ref="link_telescope" />
                <space />
                <key key="man_made" value="mast" />
                <key key="tower:type" value="radar" />
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_extra_contact" />
                </optional>
            </item>

            <item name="Siren mast" icon="presets/emergency/siren.svg" type="node" preset_name_label="true">
                <link wiki="Tag:tower:type=siren" />
                <space />
                <key key="man_made" value="mast" />
                <key key="tower:type" value="siren" />
                <reference ref="tw_con_mt" />
                <optional>
                    <reference ref="name_ref_extra" />
                </optional>
                <preset_link preset_name="Siren" />
                <reference ref="addr_contact" />
            </item>
    
        </group>
        <group name="Tower" icon="presets/tower/tower.svg">

            <item name="General preset Tower" icon="presets/tower/tower.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:man_made=tower" />
                <space />
                <label text=" Adding a general tower. Please use distinct presets if possible." />
                <space />
                <preset_link preset_name="Big communication tower" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
                <preset_link preset_name="Water tower" text="Similar but different tags:" text_context="man_made=mast/tower/communications_tower" />
                <reference ref="link_mast" />
                <reference ref="link_antenna" />
                <reference ref="link_telescope" />
                <space />
                <key key="man_made" value="tower" />
                <multiselect key="tower:type" text="Type of tower" values_searchable="true" values_sort="false" rows="11">
                    <list_entry value="bell_tower" display_value="Bell tower" icon="presets/tower/bell_tower.svg" />
                    <list_entry value="communication" display_value="Small communication tower" icon="presets/tower/communication.svg" />
                    <list_entry value="cooling" display_value="Cooling" icon="presets/tower/cooling.svg" />
                    <list_entry value="defensive" display_value="Defensive tower" icon="presets/tower/defensive.svg" />
                    <list_entry value="lighting" display_value="Lighting tower" icon="presets/tower/lighting.svg" />
                    <list_entry value="minaret" display_value="Minaret" icon="Mosque.svg" icon_size="16" />
                    <list_entry value="monitoring" display_value="Monitoring tower" icon="High-contrast-utilities-system-monitor.svg" icon_size="16" />
                    <list_entry value="observation" display_value="Observation tower" icon="presets/tower/observation.svg" />
                    <list_entry value="radar" display_value="Radar tower" icon="tower_dish.svg" icon_size="16" />
                    <list_entry value="watchtower" display_value="Watch tower" icon="presets/tower/observation.svg" />
                </multiselect>
                <reference ref="tw_con_tw" />
                <reference ref="detail_tw" />
            </item>

            <separator />

            <item name="Big communication tower" icon="presets/tower/communications_tower.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:man_made=communications_tower" />
                <space />
                <label text=" Adding a big communication tower, usually 100 meters or higher." />
                <space />
                <preset_link preset_name="Small communication tower" text="For smaller constructions, use:" />
                <space />
                <key key="man_made" value="communications_tower" />
                <multiselect key="tower:type" text="Type of tower" values_searchable="true" values_sort="false" default="communication" rows="3">
                    <list_entry value="communication" display_value="Communication tower" icon="presets/tower/communication.svg" />
                    <list_entry value="observation" display_value="Observation tower" icon="presets/tower/observation.svg" />
                </multiselect>
                <reference ref="tw_con_tw_com" />
                <optional>
                    <reference ref="name_ref_tech_extra" />
                    <reference ref="extra2_tw" />
                </optional>
            </item>

            <item name="Small communication tower" icon="presets/tower/communication.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=communication" />
                <space />
                <preset_link preset_name="Big communication tower" text="For big communication towers, see:" />
                <preset_link preset_name="Communication mast" text="For smaller constructions, use:" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="communication" />
                <reference ref="tw_con_tw_com" />
                <optional>
                    <reference ref="name_ref_tech_extra" />
                    <reference ref="extra2_tw" />
                </optional>
            </item>

            <item name="Radar tower" icon="tower_dish.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=radar" />
                <space />
                <reference ref="link_telescope" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="radar" />
                <reference ref="tw_con_tw" />
                <reference ref="detail_tw" />
            </item>

            <item name="Lighting tower" icon="presets/tower/lighting.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=lighting" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="lighting" />
                <reference ref="tw_con_tw" />
                <reference ref="detail_tw" />
            </item>

            <item name="Cooling tower" icon="presets/tower/cooling.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=cooling" />
                <space />
                <preset_link preset_name="Chimney" text="Similar but different tag:" text_context="man_made=chimney;man_made=tower,tower:type=cooling" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="cooling" />
                <reference ref="tw_con_tw" />
                <reference ref="detail_tw" />
            </item>

            <item name="Water tower" icon="presets/tower/water_tower.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:man_made=water_tower" />
                <space />
                <key key="man_made" value="water_tower" />
                <optional>
                    <text key="capacity" text="Capacity in cubic meter (m³)" lenght="7" />
                    <reference ref="name_ref_extra" />
                    <reference ref="extra2_tw" />
                </optional>
            </item>

            <item name="Monitoring tower" icon="High-contrast-utilities-system-monitor.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=monitoring" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="monitoring" />
                <reference ref="tw_con_tw" />
                <preset_link preset_name="Monitoring Station" />
                <reference ref="detail_tw" />
            </item>

            <item name="Observation tower" icon="presets/tower/observation.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=observation" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="observation" />
                <reference ref="tw_con_tw" />
                <reference ref="detail_tw" />
            </item>

            <item name="Watch tower" icon="presets/tower/observation.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=watchtower" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="watchtower" />
                <reference ref="detail_tw" />
            </item>

            <item name="Defensive tower" icon="presets/tower/defensive.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=defensive" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="defensive" />
                <reference ref="detail_tw" />
            </item>

            <item name="Bell tower" icon="presets/tower/bell_tower.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=bell_tower" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="bell_tower" />
                <optional>
                    <combo key="bell_tower" text="Type of bell tower" values="bell_gable,campanile,klockstapel" values_searchable="true" />
                    <reference ref="name_ref_extra" />
                    <reference ref="extra2_tw" />
                </optional>
            </item>

            <item name="Minaret" icon="Mosque.svg" type="node,closedway,multipolygon" preset_name_label="true">
                <link wiki="Tag:tower:type=minaret" />
                <space />
                <key key="man_made" value="tower" />
                <key key="tower:type" value="minaret" />
                <reference ref="detail_tw" />
            </item>

        </group>
    </group>
</presets>

Presets_MastAndTower-preset.xml, Presets_MastAndTower.zip

* Icons in MastTower_icons.zip are from openstreetmap-carto. Other icons from commons.wikimedia.org with different licenses.

Last modified 4 months ago Last modified on 2020-07-16T17:03:09+02:00

Attachments (4)

Download all attachments as: .zip