WMS: Difference between revisions

From OCAD Wiki - English
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
The WMS servers are listed in the upper box of the '''WMS - Web Map Service''' dialog.
The WMS servers are listed in the upper box of the '''WMS - Web Map Service''' dialog.


: [[File:WmsDialog1.png]]
: [[File:WmsDialog1.png|700px]]


=== Add a WMS / WMTS Server ===
=== Add a WMS / WMTS Server ===
Line 22: Line 22:
# The '''Edit WMS / WMTS Properties''' dialog appears.
# The '''Edit WMS / WMTS Properties''' dialog appears.
# Enter the '''Name''' of the server, the '''URL''', the '''Version''' and, if required, a '''Login''' with '''Password''', the '''Token Server URL''' and a '''Key'''.
# Enter the '''Name''' of the server, the '''URL''', the '''Version''' and, if required, a '''Login''' with '''Password''', the '''Token Server URL''' and a '''Key'''.
#: [[File:AddWMSServer.PNG]]
#: [[File:EditWMSServerProperties.PNG|500px]]
# For WMTS additional information will be shown in the '''WMTS memory cache'''.
# For WMTS additional information will be shown in the '''WMTS memory cache'''.
# Click the '''OK''' button when finished.
# Click the '''OK''' button when finished.
Line 34: Line 34:




[[File:WMSDialog2.PNG]]
[[File:WMSDialog2.PNG|700px]]


=== Edit WMS / WMTS Server Properties ===
=== Edit WMS / WMTS Server Properties ===


Select a WMS / WMTS server and click the '''Edit''' button to edit its properties. The '''Edit WMS / WMTS Properties''' dialog appears which is equal to the '''[[WMS#Add a WMS Server|Add WMS / WMTS Server]]''' dialog.
Select a WMS / WMTS server and click the '''Edit''' button to edit its properties. The '''Edit WMS / WMTS Properties''' dialog appears which is equal to the '''[[WMS#Add a WMS Server|Add WMS / WMTS Server]]''' dialog.
: [[File:EditWMSServerProperties.PNG]]
: [[File:EditWMSServerProperties.PNG|500px]]


=== Remove a WMS / WMTS Server ===
=== Remove a WMS / WMTS Server ===
Line 47: Line 47:
== WMS / WMTS Layer ==
== WMS / WMTS Layer ==
After connecting to a WMS / WMTS server the available WMS / WMTS layers are listed in the WMS / WMTS layer box.  
After connecting to a WMS / WMTS server the available WMS / WMTS layers are listed in the WMS / WMTS layer box.  
: [[File:WMSDialog3.PNG]]
: [[File:WMSDialog3.PNG|700px]]


# Select a WMS / WMTS layer in the list and choose an '''Image format''' from dropdown list (those formats are provided by the WMS / WMTS server).
# Select a WMS / WMTS layer in the list and choose an '''Image format''' from dropdown list (those formats are provided by the WMS / WMTS server).
# Choose an option how to add the selected layers:
# Choose an option how to add the selected layers:
#* '''Add Selected Layers as WMS / WMTS Layers to Background Maps (Online)'''
#* '''Add Selected Layers as WMS / WMTS Layers to Background Maps (Online)'''
#:: [[File:WmsAddLayerOnline.png]]
#:: [[File:WmsAddLayerOnline.png|500px]]
#:: This is an online '''[[Background Map]]''' . It is updated by the WMS / WMTS Server by each change of the map view. This can take a moment. Choose the ''online'' option only if you are using a fast WMS / WMTS server and work woth high speed internet connection. As an alternative, you can add the layer as an offline background map.
#:: This is an online '''[[Background Map]]''' . It is updated by the WMS / WMTS Server by each change of the map view. This can take a moment. Choose the ''online'' option only if you are using a fast WMS / WMTS server and work woth high speed internet connection. As an alternative, you can add the layer as an offline background map.
#* '''Add current view of selected layers to background maps (Offline)'''
#* '''Add current view of selected layers to background maps (Offline)'''
#:: [[File:WmsAddCurrentViewOffline.png]] <br>
#:: [[File:WmsAddCurrentViewOffline.png|500px]] <br>
#::* Define the '''Offline folder'''. The current map folder is set as default.
#::* Define the '''Offline folder'''. The current map folder is set as default.
#:: With this offline option an image of the chosen WMS / WMTS layer of the current view is downloaded from the WMS / WMTS server and added as a custom background map to the map. It does not get updated when changing the view.
#:: With this offline option an image of the chosen WMS / WMTS layer of the current view is downloaded from the WMS / WMTS server and added as a custom background map to the map. It does not get updated when changing the view.
#* '''Add User Defined Extent of Selected Layers to Background Maps (Offline)'''
#* '''Add User Defined Extent of Selected Layers to Background Maps (Offline)'''
#:: [[File:WmsAddUserDefinedExtentOffline.png]] <br>
#:: [[File:WmsAddUserDefinedExtentOffline.png|500px]] <br>
#::* Define the '''Offline folder'''. The current map folder is set as default.
#::* Define the '''Offline folder'''. The current map folder is set as default.
#::* Define the '''Resolution'''.
#::* Define the '''Resolution'''.

Revision as of 17:44, 4 November 2020

WMS (Web Map Service) and WMTS (Web Map Tile Service) are interfaces for retrieving geodata as raster data over the internet.

These images can be used as background maps in OCAD. The images are generated by a map server using data from a GIS database.

With WMTS the maps are divided into pre-generated "tiles". The background maps are thus loaded significantly faster by a WMTS service than by a WMS service.

Hint.jpg WMS requires a georeferenced map. Choose the Scale and Coordinate System command from the Map menu to set the map scale and a coordinate system. Real world coordinates do not have to be necessarily defined. They can be left at (0/0) for example.

To set up a map from a WMS / WMTS server choose the WMS / WMTS command from the Background Map menu. The WMS / WMTS dialog appears.

WMS.gif

WMS Server Space.PNGThis function is available in OCAD Mapping Solution.This function is available in OCAD Orienteering.

The WMS servers are listed in the upper box of the WMS - Web Map Service dialog.

WmsDialog1.png

Add a WMS / WMTS Server

  1. Click the Add button.
  2. The Edit WMS / WMTS Properties dialog appears.
  3. Enter the Name of the server, the URL, the Version and, if required, a Login with Password, the Token Server URL and a Key.
    EditWMSServerProperties.PNG
  4. For WMTS additional information will be shown in the WMTS memory cache.
  5. Click the OK button when finished.
  6. The WMS server appears in the WMS server box.


Connect to a WMS / WMTS Server

Select a WMS / WMTS server from the list and click Connect. If the connection was successful, OCAD gets a list from the server with the available layers. These layers are listed in the WMS / WMTS layer table of the WMS / WMTS dialog. Read the WMS / WMTS Layer article to learn how to use layers as Background Maps.


WMSDialog2.PNG

Edit WMS / WMTS Server Properties

Select a WMS / WMTS server and click the Edit button to edit its properties. The Edit WMS / WMTS Properties dialog appears which is equal to the Add WMS / WMTS Server dialog.

EditWMSServerProperties.PNG

Remove a WMS / WMTS Server

Click the Remove button to remove the selected WMS / WMTS server from the list.

WMS / WMTS Layer

After connecting to a WMS / WMTS server the available WMS / WMTS layers are listed in the WMS / WMTS layer box.

WMSDialog3.PNG
  1. Select a WMS / WMTS layer in the list and choose an Image format from dropdown list (those formats are provided by the WMS / WMTS server).
  2. Choose an option how to add the selected layers:
    • Add Selected Layers as WMS / WMTS Layers to Background Maps (Online)
    WmsAddLayerOnline.png
    This is an online Background Map . It is updated by the WMS / WMTS Server by each change of the map view. This can take a moment. Choose the online option only if you are using a fast WMS / WMTS server and work woth high speed internet connection. As an alternative, you can add the layer as an offline background map.
    • Add current view of selected layers to background maps (Offline)
    WmsAddCurrentViewOffline.png
    • Define the Offline folder. The current map folder is set as default.
    With this offline option an image of the chosen WMS / WMTS layer of the current view is downloaded from the WMS / WMTS server and added as a custom background map to the map. It does not get updated when changing the view.
    • Add User Defined Extent of Selected Layers to Background Maps (Offline)
    WmsAddUserDefinedExtentOffline.png
    • Define the Offline folder. The current map folder is set as default.
    • Define the Resolution.
    • Define the Extent (minimum easting, maximum easting, minimum northing, maximum northing). The current view extent is set as a default when opening the WMS / WMTS dialog but the entries are not updated automatically by changing the view. The extent can be updated by clicking the Set extent to current view button.
    With this offline option an image of the chosen WMS / WMTS layer of the defined extent is downloaded from the WMS / WMTS server and added as a custom background map to the map. It does not get updated when changing the view.
  3. Click the Add button.
    The WMS / WMTS layer appears in the table of the Manage Background Map dialog which can be displayed in the Background Map menu.
    Hint.jpg The Background map (Geo-Referenced) dialog appears if no real world coordinates offset is set. Choose an offset and click the OK button.



Hint.jpg Web Map Services generally provide their images in multiple spatial reference systems. OCAD can only access to WMS / WMTS if the OCAD maps' coordinate system (ex. Swiss Grid CH1903+/LV95) is supported by the WMS / WMTS. Then the Spatial reference system is automatically set to the corresponding EPSG code. If the chosen coordinate system is not compatible with the WMS / WMTS, the Spatial reference system caption in the WMS / WMTS dialog remains empty.

Click the Close button when finished.

Hint.jpg Manage the view or remove the WMS maps by choosing the Manage command from the Background Map menu:
WMSBackGroundMap.PNG

WMS Examples:
WMSExample.PNG
WMS4.png