Web Services for GIS

Web Map Service / Web Coverage Service

A Web Map Service (WMS) is an Open Geospatial Consortium (OGC) standard that allows users to remotely access georeferenced map images via secure hypertext transfer protocol (HTTPS) requests.

DE Africa provides two types of maps services:

  • Web Map Service (WMS) - A standard protocol for serving georeferenced map images over the internet that are generated from a map server using data from a GIS database. It is important to note that with a WMS, you are essentially getting an image of geospatial data (i.e. JPG, GIF, PNG file). While this has its uses, it is an image only, and therefore does not contain any of the underlying geospatial data that was used to create the image.

  • Web Coverage Service (WCS) - A standard protocol for serving coverage data which returns data with its original semantics (instead of just pictures) which may be interpreted, extrapolated, etc., and not just portrayed. Essentially, a WCS can be thought of as the raw geospatial raster data behind an image. Using a WCS, you can pull the raw raster information you need to perform further analysis.

  • Web Map Tile Service (WMTS) - A standard protocol for serving pre-rendered georeferenced map tiles over the internet, comparable to WMS. The primary distinction between WMS and WMTS is how data is supplied to the client; WMS delivers map data as a single image, whereas WMTS serves map data as a series of tiles pre-rendered on the server side at different scales and cached on the client-side resulting in faster delivery and less bandwidth.

So, to give a quick summarisation, a WMS is simply an image of a map. You can almost think of this like taking a screenshot of Google Maps. A WMTS is identical to a WMS, except that the images are pre-generated and saved as small map tiles that span the whole map area and at several scales. A WCS is the raw raster data, so for example, if you are working with a WCS containing Landsat imagery, you can effectively chunk off the piece you are interested in and download the full multispectral image at the spatial resolution of the original image. The beauty of these services is that you can grab only the information you need. So, rather than retrieving a file that contains the data you are seeking and possibly much more, you can confine your download to only your area of interest, allowing you to get what you need and no more.

For more information, see this article on the difference between GIS web services.

The tutorials below cover:

  • Setting up WMS

  • Adding WMS-T (time-supported) layers

  • Connecting to WCS

  • Connecting to WMTS

The tutorials have been created with QGIS3 and ArcGIS Pro 3.0.3. The same processes can be used to connect other Desktop GIS applications. QGIS is a free and open-source desktop GIS application. You can download it from https://qgis.org/en/site/.

QGIS

Setting up WMS

This tutorial shows how to set up the Web Map Services in QGIS and use it with other data on your computer such as drone imagery, vector or raster data. This may be useful for you if you cannot upload the data to the DE Africa Map or the DE Africa Sandbox due to uploading due to size or internet bandwidth. It may also be useful if you feel more comfortable doing analysis in a GIS application.

  1. Launch QGIS.

  2. On the Menu Bar click on Layer.

  3. A sub-menu tab will show below Layer; click on Add Layer, choose Add WMS/WMTS Layer.

    QGIS - Add Layer

  4. A dialogue will open as shown below. Click on the New button.

    QGIS - New Layer

  5. A dialogue will open, as shown below: Provide the following details, these can be found at the URL https://ows.digitalearth.africa/.

    Name: DE Africa Services

    URL:  https://ows.digitalearth.africa/wms?version=1.3.0

    QGIS - Create New Connection

  6. After providing the details above, click on OK.

  7. The previous dialogue will show up, in the dropdown above the New button, you will see DE Africa Services. If it is not there click the dropdown button below and select it.

  8. The Connect button will be activated, click on it to load the layers. Anytime this page is open, because the connection has already been established, click on Connect to load the data.

    QGIS - View Connection

  9. The layer will be loaded as shown below in the dialogue.

  10. Navigate through layers and choose the layer you will need to display on the Map Page.

  11. After selecting the layer, click on Add button at the bottom of the dialogue.

  12. Close the dialogue, the selected layer will be loaded onto the Map Page.

For web developers

The sites below provide instructions on how to load these map services onto your platform.

https://leafletjs.com/examples/wms/wms.html

https://openlayers.org/en/latest/examples/wms-tiled.html

https://docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/layers/wms-tile-layer-example

Add WMS-T (time-supported) layers

Digital Earth Africa web services support WMS-T (WMS with time). WMS-T layers allow users to navigate different time periods.

How to add WMS-T layers using QGIS

  1. Connect to the Web Map Service in QGIS by following the instructions in Setting up WMS tutorial.

  2. In the QGIS Browser Panel navigate to the WMS/WMTS provider item and expand it to show the DE Africa Services connection.

    QGIS - View Connection

  3. Select a WMS-T layer from the DE Africa Services connection layers by either double clicking on the layer item in the Browser Panel or right clicking on it and selecting Add Layer to Project to add the layer onto the map canvas.

    QGIS - Add Temporal Layer to Project

  4. The layer will be loaded in the Layers Panel with a clock symbol temporal indicator next it to indicate that it is a temporal layer.

    QGIS - View Temporal Layer in Layer Panel

How to use the QGIS Temporal Controller with WMS-T layers

To use the Temporal Controller for WMS-T layers, ensure that in the Temporal section of the layer’s Layer Properties, the Dynamic Temporal Control is selected. You can select the time range to be Automatic or Fixed time range.

For the Automatic setting, the temporal handling is delegated to the data provider and time based filtering is applied to the features of the layer such that the features will be visualized for the animation range set by the Temporal Controller.

QGIS - Dynamic Temporal Control - Automatic

For the Fixed time range setting the user manually sets the temporal range in which all the features of the layer will be visualised only if the animation range from the Temporal Controller is within this temporal range.

QGIS - Dynamic Temporal Control - Fixed time range

  1. On the Map Navigation Toolbar select the clock symbol for the Temporal Controller Panel to activate the Temporal Controller dock widget.

    QGIS - Activate Temporal Controller Dock Widget

    Temporal controller dock widget activated after click on the Temporal Controller toolbar icon.

    QGIS - Temporal Controller Dock Widget

  2. To turn on the Fixed range temporal navigation, select the Fixed range temporal navigation icon Temporal Navigation Fixed Range on the Temporal Controller Panel and set the time range for the layer features to be visualized.

    QGIS - Fixed Range Temporal Navigation

  3. To turn on the Animated temporal navigation, select the Animated temporal navigation icon Temporal Navigation Animated on the Temporal Controller Panel, and set animation range and the time step for the animation.

    QGIS - Animated Temporal Navigation - Animation Range

    QGIS - Animated Temporal Navigation - Time Step

  4. Click on the Play icon play to view the animation.

    QGIS - Play Animation

  5. To rewind the animation to the beginning i.e. the start of the animation range, click on the Rewind to start icon rewindToStart.

    QGIS - Rewind Animation to Start

  6. To go back to the previous frame of the animation, click on the Go to previous frame icon previous. The time difference (time step) between consecutive frames is determined by the Step defined by the user.

    QGIS - Rewind Animation to Previous Frame

  7. To rewind the animation, click on the Reverse icon back.

    QGIS - Rewind Animation

  8. To go to the next frame of the animation, click on the Go to next frame icon next. The time difference (time step) between consecutive frames is determined by the Step defined by the user.

    QGIS - Forward Animation to Next Frame

  9. To fast forward the animation to the end i.e. skip to the end of the animation range, click on the Fast forward to end icon skipToEnd.

    QGIS - Forward Animation to End

How to export the animation from QGIS Temporal Controller

  1. The animation can be exported from the QGIS temporal controller as a series of images. To export the animation click on the Export animation icon save on the Temporal Controller Panel.

    QGIS - Export Animation

  2. In the Export Map animation dialogue, specify:

    • The naming template to be used for labelling the images.

    • The output directory where the images will be saved.

    • The map extent to be covered by the images.

    • The width and height of the images.

    • The temporal range and time step for the animation.

    QGIS - Export Animation Options

  3. The exported images will be saved in the specified ouput directory. Using your preferred software, you can use the images to create an animation.

    QGIS - Exported Animation as Images

    GIF from Exported Animation Images

How to use the WMS-T layers in QGIS without the Temporal Controller

  1. To use the WMS-T layers in QGIS without the Temporal Controller, first disable the Dynamic Temporal Control in the layer’s Layer Properties to enable the Static WMS-T Temporal Range settings. The default setting is the Server default temporal range for visualizing the layer features. This is a predefined temporal range set by the data service provider.

    You will notice after disabling Dynamic Temporal Control that the layer no longer has the temporal indicator symbol temporal indicator next to the layer name in the Layers Panel, this means that the layer is no longer considered a temporal layer by QGIS, hence can’t be used by the Temporal Controller.

    QGIS - Disable Dynamic Temporal Control

    QGIS - Static WMS-T Layer

  2. Using the Predefined range you can set the temporal range for the layer features to be visualized using the Start date and End date. A time-based filter will be applied to the layer and the fetched features will be the features within the predefined temporal range.

    QGIS - Static WMS-T Temporal Range - Predefined Range

  3. To use the Follow project’s temporal range setting, the project temporal range in the Temporal section (Project > Properties> Temporal) of the Project Properties must be set. After setting the project temporal range, applying this setting will result in fetching the WMS layer features that are within the projects temporal range.

    QGIS - Set Project Temporal Range

    QGIS - Static WMS-T Temporal Range - Follow Project's Temporal Range

    QGIS - View Static WMS-T Layer Features in Project Temporal Range

WMS-T Settings

You can also specify the time slice mode used for both the Dynamic Temporal Control and the Static WMS-T Temporal Range. There are four options available for the time slice mode:

  • Use Whole Temporal Range: Allows the user to set the temporal range for the layer features to be visualized/plotted.

  • Match to Start of Range: The layer features visualized will be features that match the start of the layer’s time range.

  • Match to End of Range: The layer features visualized will be features that match the end of the layer’s time range.

  • Closest Match to Start of Range: Visualizes the layer features whose date and time stamp are the closest to the start of the defined temporal range.

  • Closet Match to End of Range: Visualizes the layer features whose date and time stamp are the closest to the end of the defined temporal range.

You can also enable the option for Ignoring time components which allows QGIS to only consider the dates when applying a time based filter to the layer features based on a defined temporal range, without considering the time component.

QGIS - WMS-T Settings

How to connect WCS

  1. Launch QGIS.

  2. On the Menu Bar click on Layer.

  3. A sub-menu tab will show below Layer; click on Add Layer, choose Add WCS Layer.

    QGIS - Add WCS

  4. Click on the New button.

  5. A dialogue will open, as shown below: Provide the following details, these can be found at the URL https://ows.digitalearth.africa/

    Name: DE Africa Services

    URL:  https://ows.digitalearth.africa/wcs?version=2.1.0

    QGIS - WCS Connection

  6. After providing the details above, click on OK.

  7. The previous dialogue will show up, in the dropdown above the New button, you will see DE Africa Services, if it is not there click the dropdown button below and select it.

  8. The Connect button will be activated, click on it to load the layers. Anytime this page is open, because the connection has already been established, click on the Connect button to load the data.

  9. The layer will be loaded as shown below in the dialogue.

    QGIS - Loaded WCS

  10. Navigate through layers and choose the layer you will need to display on the Map Page. With WCS you can select Time and Format of Image.

  11. After selecting the layer click on the Add button at the bottom of the dialogue.

ArcGIS Pro

Setting up WMS

This tutorial shows how to set up the Web Map Services in ArcGIS Pro, and use it with other data on your computer such as drone imagery, vector or raster data. This may be useful for you if you cannot upload the data to the DE Africa Map or the DE Africa Sandbox due to uploading due to size or internet bandwidth. It may also be useful if you feel more comfortable doing analysis in a GIS application.

  1. Launch ArcGIS Pro.

  2. On the Menu Bar click on Insert.

  3. In the Project group, click on Connections and a dropdown menu will appear below Connections; click on Server and choose Add WMS Server.

    ArcGIS - Add WMS server

  4. A dialogue will open, as shown below: Provide the server URL, which can be found at the URL https://ows.digitalearth.africa/.

    URL:  https://ows.digitalearth.africa/wms?version=1.3.0

    ArcGIS - Create New WMS Connection

  5. After providing the server URL above, click on OK.

  6. This will add the Digital Earth Africa WMS Server to the Catalog pane, under Servers.

    ArcGIS - WMS to catalog

  7. Navigate through layers and choose the layer you will need to display on the Map view.

  8. After selecting the layer, right click on the layer and select Add to Current Map (alternatively, you can drag and drop the layer onto the Map view).

  9. The selected layer will be loaded onto the Map view.

For web developers

The sites below provide instructions on how to load these map services onto your platform.

https://leafletjs.com/examples/wms/wms.html

https://openlayers.org/en/latest/examples/wms-tiled.html

https://docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/layers/wms-tile-layer-example

Add WMS-T (time-supported) layers

Digital Earth Africa web services support WMS-T (WMS with time). WMS-T layers allow users to navigate different time periods.

How to add WMS-T layers using ArcGIS Pro

  1. Connect to the Web Map Service in ArcGIS by following the instructions in Setting up WMS tutorial.

  2. In the Catalog pane, navigate to Servers and expand it to show the Digital Earth Africa - OGC Web Services on ows.digitalearth.africa.wms connection.

  3. Select a WMS-T layer from the Digital Earth Africa - OGC Web Services on ows.digitalearth.africa.wms connection layers. To add the layer to the map view, right click on the layer and select Add to Current Map (alternatively, you can drag and drop the layer onto the Map view).

    ArcGIS - Add Temporal layer to Project

  4. The layer will be loaded onto the Map view with a contextual Time tab added to the Menu bar and a Time Slider ay the top of the map view, indicating that it is a temporal layer.

    QGIS - View Temporal Layer in Layer Panel

How to use the ArcGIS Pro Time Slider with WMS-T layers

  1. To use the Time Slider for WMS-T layers, hover over the Time Slider to see its controls.On the left side of the Time Slider icon, click on Time disabled time disabled to change it to Time enabled time enabled.

    ArcGIS - Enable Time

  2. You can configure the time settings on your layer. Click on the Time tab in the Menu bar. In the Snapping group, check the Time Snapping check box.

  3. Under the Time Snapping check box, click on the Time Snap Interval dropdown and select Years.

    This corresponds to the yearly intervals of the data.

  4. In the Current Time group, change the Span setting to 0 and press the Enter key.

    This ensures that only one year’s woth of data displays at a time.

    ArcGIS - Time slider configuration

  5. In the Playback group, click Play all steps play all steps.

    ArcGIS - play all steps

  6. To set the time slider controls backwards according to the step setting (i.e., move back one time step), click on the Step Back icon step back.

    ArcGIS - step back

  7. To set the time slider controls forward according to the step setting (i.e., move forward one time step), click on the Step Forward icon step forward.

    ArcGIS - step forward

  8. To set the relative speed of the visualisation by adjusting the amount of pause between steps, use the Adjust Playback Speed icon adjust playback speed.

    ArcGIS - adjust playback speed

  9. To set whether the playback of all steps begins by moving forward or backward in time through the data, click on the Direction icon direction.

    ArcGIS - direction

  10. To set the playback to continue to loop in the same direction after it has reached the last step at the end of the time slider, click on the Repeat icon repeat.

    ArcGIS - repeat

  11. To set the playback to continue to loop in the opposite direction after it has reached the last step at the end of the time slider, click on the Reverse icon reverse.

    ArcGIS - reverse

How to export the animation from ArcGIS Time Slider 1. To export the animation, click on the View tab. In the Animation group, click Add. 2. An empty Animation Timeline pane appers undeer the Map view. On the Menu bar, a contextual Animation tab appears.

ArcGIS - Empty Animation Timeline

  1. Before you create keyframes for the animation, you will zoom to the correct map extent. In the Contents pane, right click on the layer and Zoom To layer.

  2. On the Menu bar, click the Animation tab. In the Create group, click Impoer Animation and click Time Slider Steps.

    ArcGIS - Time slider Steps

  3. The Animation Timeline pane populates with keyframes (It takes a few moments for the images to display in the keyframes). The first keyframe represents the animation at zero seconds (00:00.0000). Each subsequent keyframe corresponds to the data for one year.

    ArcGIS - Animation timeline population

  4. On the Animation tab, in the Playback group, the Duration setting tells you the length of the the animatiton. You can replace the duration value (e.g., 00:30 - which will make the duration of the animation 30 seconds).

  5. As the animation plays, you may want to show which year the data represents. To do so, yo will add dynamic text - information that updates during the playback.

    In the Animation Timeline pane, under keyframe Gallery, click on the first keyframe to select it and scroll to the end of the gallery, press and hold the Shift key, then click the last keyframe. This will select all the key frames in your animation.

    The dynamic text you add in the next step will be applied to all the selected keyframes - in other words, thoughout the animation.

    ArcGIS - keyframe gallery selection

  6. On the Menu bar, on the Animation tab, in the Overlay group, expand the Overlay gallery.

    ArcGIS - Overlay gallery

  7. In the Overlay gallery, under Dynamic test, click Map Time. ArcGIS - Overlay gallery

  8. In the dynamic text box that appears on the Map view, replace the default two-line expression with <dyn type="animation" property="startTime" format="yyyy"/>
    The expression created a single label, rather than a start and end time, and formats it display the year ratheer than a full date ArcGIS - keyframe gallery selection
  9. In the Playback group of the Animation tab, click on Play (Do not clickPlayon theTime Slideras the changes you have made to the animation are not reflected in theTime Slliderplayback.

    ArcGIS - play animation

  10. On the Animation tab, in the Export group, click Movie Export movie export

  11. In the Export Movie pane, in the File Name box, give your animation an appropriate name.

    Optionally, click Browse browse and browse to a different folder to save the video.

    Then click Export. ArcGIS - Export movie

How to connect WCS

  1. Launch ArcGIS Pro.

  2. On the Menu Bar click on Insert.

  3. In the Project group, click on Connections and a dropdown menu will appear below Connections; click on Server and choose Add WCS Server.

    ArcGIS - Add WCS server

  4. A dialogue will open, as shown below: Provide the server URL, which can be found at the URL https://ows.digitalearth.africa/.

    URL:  https://ows.digitalearth.africa/wcs?version=1.3.0

    ArcGIS - Create New WCS Connection

  5. After providing the server URL above, click on OK.

  6. This will add the Digital Earth Africa WCS Server to the Catalog pane, under Servers.

    ArcGIS - WCS to catalog

  7. Navigate through layers and choose the layer you will need to display on the Map view.

  8. After selecting the layer, right click on the layer and select Add to Current Map (alternatively, you can drag and drop the layer onto the Map view).

  9. The selected layer will be loaded onto the Map view.

How to connect WMTS

  1. Launch ArcGIS Pro.

  2. On the Menu Bar click on Insert.

  3. In the Project group, click on Connections and a dropdown menu will appear below Connections; click on Server and choose Add WMTS Server.

    ArcGIS - Add WMTS server

  4. A dialogue will open, as shown below: Provide the server URL, which can be found at the URL https://ows.digitalearth.africa/.

    URL:  https://ows.digitalearth.africa/wmts?version=1.0.0

    ArcGIS - Create New WCS Connection

  5. After providing the server URL above, click on OK.

  6. This will add the Digital Earth Africa WMTS Server to the Catalog pane, under Servers.

    ArcGIS - WCS to catalog

  7. Navigate through layers and choose the layer you will need to display on the Map view.

  8. After selecting the layer, right click on the layer and select Add to Current Map (alternatively, you can drag and drop the layer onto the Map view).

  9. The selected layer will be loaded onto the Map view.

[ ]: