Skip to content

Commit

Permalink
Merge pull request #56 from digitalearthafrica/ows-tutorial
Browse files Browse the repository at this point in the history
GIS OWS tutorial.
  • Loading branch information
caitlinadams committed Nov 30, 2020
2 parents 7c9ff8f + 27e9912 commit 70272e8
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 4 deletions.
43 changes: 43 additions & 0 deletions docs/Events.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Events"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The DE Africa training course convenors host regularly scheduled **virtual live sessions**. They are intended to be a friendly, open environment where anyone can ask questions and meet people from the DE Africa community. \n",
"\n",
"The live sessions are conducted on Zoom, an online meeting platform. They are open to anyone who is currently completing the 6-week training course, or has recently completed the 6-week training course.\n",
"\n",
"Live session details are distributed via a WhatsApp group. To join the WhatsApp group, please send an email to training@digitalearthafrica.org with your name and mobile phone number."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.9"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
9 changes: 9 additions & 0 deletions docs/Frequently_asked_questions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@
"\n",
"![Join channel](_static/faq-slack4.png){ width=\"400px\" }\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## How do I connect to GIS web services?\n",
"\n",
"See [this tutorial](./OWS_tutorial.ipynb) on using the Digital Earth Africa Web Map Services or Web Coverage Services."
]
}
],
"metadata": {
Expand Down
174 changes: 174 additions & 0 deletions docs/OWS_tutorial.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# GIS web services"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Web Map Service / Web Coverage Service"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"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.\n",
"\n",
"DE Africa provides two types of maps services:\n",
"\n",
"* 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.\n",
"* 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.\n",
"\n",
"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 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.\n",
"\n",
"For more information, see this article on the [difference between GIS web services](https://www.l3harrisgeospatial.com/Learn/Blogs/Blog-Details/ArtMID/10198/ArticleID/16289/Web-Mapping-Service-Web-Coverage-Service-or-Web-Feature-Service-%E2%80%93-What%E2%80%99s-the-Difference).\n",
"\n",
"The tutorials below cover setting up WMS and connecting to WCS."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Tutorial: Setting up WMS"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"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.\n",
"\n",
"Although this tutorial focuses on QGIS, the same process can be used to connect other Desktop GIS applications. [QGIS](https://qgis.org/en/site/) is a free and open-source desktop GIS application. You can download it from https://qgis.org/en/site/."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**How to connect to WMS using QGIS**"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Launch QGIS.\n",
"2. On the Menu Bar click on **Layer**.\n",
"3. A sub-menu tab will show below Layer; click on **Add Layer**, choose **Add WMS/WMTS Layer**.\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_1.png\" alt=\"QGIS - Add Layer\" width=\"500\">\n",
"\n",
"4. A dialogue will open as shown below. Click on the **New** button.\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_2.png\" alt=\"QGIS - New Layer\" width=\"500\">\n",
"\n",
"5. A dialogue will open, as shown below: Provide the following details, these can be found at the URL https://ows.digitalearth.africa/.\n",
"\n",
"`Name: DE Africa Services`\n",
"\n",
"`URL: https://ows.digitalearth.africa/wms?version=1.3.0 `\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_3.png\" alt=\"QGIS - Create New Connection\" width=\"300\">\n",
"\n",
"6. After providing the details above, click on **OK**.\n",
"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.\n",
"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.\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_4.png\" alt=\"QGIS - View Connection\" width=\"500\">\n",
"\n",
"9. The layer will be loaded as shown below in the dialogue.\n",
"10. Navigate through layers and choose the layer you will need to display on the Map Page.\n",
"11. After selecting the layer, click on **Add** button at the bottom of the dialogue.\n",
"12. Close the dialogue, the selected layer will be loaded onto the Map Page.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**For web developers**\n",
"\n",
"The sites below provide instructions on how to load these map services onto your platform.\n",
"\n",
"https://leafletjs.com/examples/wms/wms.html\n",
"\n",
"https://openlayers.org/en/latest/examples/wms-tiled.html\n",
"\n",
"https://docs.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/layers/wms-tile-layer-example\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Tutorial: How to connect WCS"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This tutorial shows how to create a Web Coverage Service connection using QGIS. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Launch QGIS.\n",
"2. On the Menu Bar click on **Layer**.\n",
"3. A sub-menu tab will show below Layer; click on **Add Layer**, choose **Add WCS Layer**.\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_5.png\" alt=\"QGIS - Add WCS\" width=\"500\">\n",
"\n",
"4. Click on the **New** button.\n",
"5. A dialogue will open, as shown below: Provide the following details, these can be found at the URL https://ows.digitalearth.africa/\n",
"\n",
"`Name: DE Africa Services`\n",
"\n",
"`URL: https://ows.digitalearth.africa/wcs?version=2.1.0`\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_6.png\" alt=\"QGIS - WCS Connection\" width=\"300\">\n",
" \n",
"6. After providing the details above, click on **OK**.\n",
"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.\n",
"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.\n",
"9. The layer will be loaded as shown below in the dialogue.\n",
"\n",
"<img align=\"middle\" src=\"_static/other_information/ows_tutorial_4.png\" alt=\"QGIS - Loaded WCS\" width=\"500\">\n",
"\n",
"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.\n",
"11. After selecting the layer click on the **Add** button at the bottom of the dialogue.\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Binary file added docs/_static/other_information/ows_tutorial_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/other_information/ows_tutorial_3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/other_information/ows_tutorial_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/other_information/ows_tutorial_6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ Should you require help, see the :doc:`Frequently_asked_questions` and :doc:`Con
Latest Updates
-------------------


- **20/11/2020:** The training material can be downloaded as a single PDF from the page `Download course content <./Download_course.ipynb>`_. Note videos and Sandbox access are not available offline.
- **09/11/2020:** Check out the `Events <./Events.ipynb>`_ page to find out how to join our virtual live sessions.
- **05/11/2020:** The `GIS web services tutorial <./OWS_tutorial.ipynb>`_ is live.
- **28/10/2020:** Confused about `geomedians <./session_3/03_geomedian_exercise.ipynb>`_? See the new `geomedian widget <./Geomedian_widget.ipynb>`_.
- **14/10/2020:** The `Session 1 quiz <./session_1/05_s1_quiz.ipynb>`_ has been added. This makes the quiz available to anyone who did not originally receive the link from the mailing list.
- **06/10/2020:** The `Session 6 quiz <./session_6/03_s6_solution.ipynb>`_ is live. Check your email for the link to the final feedback survey.
- **02/10/2020** `Course conclusion & wrap-up <./Course_wrap-up.ipynb>`_ has been added.
- **02/10/2020:** `Course conclusion & wrap-up <./Course_wrap-up.ipynb>`_ has been added.
- **01/10/2020:** `Session 6: Water Analyses <./session_6/index.rst>`_ has been added.
- **29/09/2020:** The `Session 5 quiz <./session_5/03_s5_solution.ipynb>`_ is live.
- **24/09/2020:** `Session 5: Vegetation Analyses <./session_5/index.rst>`_ has been added.
- **22/09/2020:** The `Session 4 quiz <./session_4/04_s4_solution.ipynb>`_ is live.
- **17/09/2020:** `Session 4: Indices <./session_4/index.rst>`_ has been added.
- **15/09/2020:** The `Session 3 quiz <./session_3/04_s3_solution.ipynb>`_ is live. Video slides are now available to download under each video.

.. toctree::
:maxdepth: 1
Expand All @@ -56,7 +57,9 @@ Latest Updates
Contact_us
Frequently_asked_questions
Download_course
Events
help_documentation
Maps_help
Geomedian_widget
OWS_tutorial
License

0 comments on commit 70272e8

Please sign in to comment.