Changes between Version 15 and Version 16 of Help/Menu/Imagery


Ignore:
Timestamp:
2011-02-25T22:23:20+01:00 (15 years ago)
Author:
stoecker
Comment:

Cleanup

Legend:

Unmodified
Added
Removed
Modified
  • Help/Menu/Imagery

    v15 v16  
    100100A WMS server typically can provide different projections, subsets of data, etc., so you may need to experiment with the URL settings to get the best results.
    101101
    102 == Adding presets for objects and mark them with source=yahoo_wms ==
    103 
    104 It can be useful to let other users know what your data is based on by adding {{tag|source||yahoo_wms}}. This can be quickly done by creating a JOSM [wiki:TaggingPresets tagging preset] for roads, woodland, etc and source=yahoo_wms.
    105 
    106 Once this is setup, it is simple to apply custom combinations of tags to an node, way or area in JOSM:
    107 
    108 * Download the [[Image:Yahoo-road.png]] Yahoo road icon.
    109 * Open your favourite text editor and insert the following:
    110  <annotations>
    111    <item name="road-source" icon="[PATH TO ICON]\Yahoo-road.png">
    112        <key key="source" value="yahoo_wms" />
    113        <key key="highway" value="road" />
    114    </item>
    115  </annotations>
    116 
    117 * Save it as yahoo-presets.xml
    118 * Open JOSM
    119 * Open the Preferences, go to the Map Settings (3rd tab)
    120 * Add your file at the "Tagging Preset Sources"
    121 * Restart JOSM
    122 * If you want, you can put the preset in your toolbar for quick access (Preferences, Toolbar customization)
    123 * You might also want presets for things like [[Image:Yahoo-farm.png]] {{tag|landuse||farm}} and/or [[Image:Yahoo-stream.png]] {{tag|waterway||stream}}
    124 * Download the above icons and add new <item> entries to your yahoo-presets.xml file
    125 
    126102== Remote control ==
    127103
    128 Since version 22677 the WMSPlugin will register an additional remote control command "wms" if the [[{{{RemoteControl:plugin|JOSM/Plugins/RemoteControl}}} | RemoteControl]] plugin version 22675 or newer is loaded.
    129 
    130 The "wms" command instructs JOSM to open a WMS layer in the same way as with the "rectified image" menu command.
     104The "wms" remote control command instructs JOSM to open a WMS layer in the same way as with the "rectified image" menu command.
    131105
    132106  GET /wms?title=foobar&urldecode=false&url=...
     
    134108where
    135109
    136 {|{{Prettytable}}
    137 !parameter
    138 !required/
    139 optional
    140 !meaning
    141 |-
    142 |url
    143 |R
    144 |WMS URL in the usual format. This must be the last parameter.
    145 |-
    146 |title
    147 |O
    148 |Title (name) of WMS layer. If not specified the title will be "remote WMS".
    149 |-
    150 |urldecode
    151 |O
    152 |Disable URL-decoding of URL value if true. All other values will be URL-decoded anyway.
    153 |-
    154 |cookies
    155 |O
    156 |Can be used to specify cookies for the WMS request.
    157 |}
     110||=parameter=||=required/optional=||=meaning=||
     111||url||R||WMS URL in the usual format. This must be the last parameter.||
     112||title||O||Title (name) of WMS layer. If not specified the title will be "remote WMS".||
     113||urldecode||O||Disable URL-decoding of URL value if true. All other values will be URL-decoded anyway.||
     114||cookies||O||Can be used to specify cookies for the WMS request.||
    158115
    159116Note: The "url" parameter must be the last one. Everything after url= will be used as the WMS URL. It is not mandatory to URL-encode the value, but the WMSPlugin will try to URL-decode it unless urldecode=false is specified. If you notice that the decoding modifies the URL in an unwanted way, add "urldecode=false" before the "url" parameter.
     
    163120  wmsplugin.remotecontrol=false
    164121
    165 or by using the checkbox "Allow remote control (reqires remotecontrol plugin)" in the preferences editor.
     122or by using the checkbox "Allow remote control" in the preferences editor.
    166123
    167124----