| West African Drylands Project Training module Lesson 1 Thomas Gumbricht ICRAF |
West African Drylands Project
An Ecosystem Approach to Restoring West African Drylands and Improving Livelihoods through Agroforestry-based Land Management Interventions.
A United Nations Environment Programme (UNEP) project conducted in partnership with the World Agroforestry Centre (ICRAF), the Centre for Environmental Policy of the University of Florida, and the Governments of Burkina Faso, Mali, Mauritania, Niger and Senegal. The project is funded by the Government of Norway.
Training module created by Thomas Gumbricht, www.mapjourney.com
Last updated: March 2008
LESSON 1 – DIVA-GIS BASICS
In this lesson you will learn about GIS data layers, and how to add and remove them from a DIVA-GIS project, how to turn layers on and off, and change the display order. You will also learn how to retrieve information about geographic features, and see the difference between vector and image data. The lesson introduces the concept of land degradation by using GIS data with maps from the Global Assessment of Land Degradation (GLASOD).
With the project opened, save it as a new project (e.g. with the name lesson1) via the menu: Project – Save As. See lesson 0 to repeat saving a project if you need.
When you click Add Layer a standard windows Open folder and file navigation window will pop up. Navigate the folder \data_spatial\sahel\mapdata\politic.
As you can see in the lower section of the Open window DIVA-GIS can work with several types of files, including: shape files (shp – files with vector GIS data), grid files (grd, files with raster GIS data), and various standard image formats (tif, jpg, sid, arc). Do not worry about this now, it will be explained later. The most common format for GIS data is as vectors, and DIVA-GIS uses shape (*.shp) files for working with vectors.
Click the drop down menu for Files of type:, and select Shapefiles (*.shp) as shown below.
Add the vector layer sahel_generalised_borders.shp (dependent on your computer setting you can also click or double click on the filename to add it).
DIVA-GIS displays the content of the shape file in the Data View, and the legend in the Legend, to the left. Note also how most of the tools became colored when you added the map layer – DIVA-GIS now has some data to operate on.
The project CD contains around almost a hundred shape files for you to start working with. With each shape file follows a jpg-image file (*.jpg). The jpg file can be viewed with most image programs (paint, photoshop etc), or using a web-browser (Internet Explorer, FireFox, Netscape, Opera, Safari etc). The jpg-images can be viewed via the html-based project data catalog web-page. But they are also possible to view in DIVA-GIS (or any other GIS). The jpg-images are almost all symbolized (that is, have colors and patterns) that are standard. And you can use the jpg-images in your projects, just as background images, or as templates for symbolizing your own GIS data layers. If you have a license for ArcView or ArcGIS there is a ready-made project file that contains most of data layers available on the CD (except the time-series data, there are simply too many layers to include). The ArcView project file is in the directory \av on the project CD. You might have to install some of the included extensions (also under the \av folder on the project CD) if you want to see all the data in ArcView. Lesson 7 includes a tutorial for using Arcview and converting vector and grid data between DIVA-GIS and ArcView/ArcGIS and other GIS software.
In the Legend View you select which layers to be shown in the Data View, and also which layer(s) the Tools should operate on. To turn on and turn off a layer, click the checkbox to the left of the layer name. In the example below the checkbox for sahel_cities_large is unchecked, and the cities are not shown in the Data View.
To check/uncheck all layers in the Legend hold down the ctrl-key and click any layer that is on.
When you clicked in the checkbox the layer you clicked also got a highlighted frame around it (sahel_cities_large in the example above). The lifted frame of sahel_cities_large indicates that this is now the active layer. Any layer-related operation that you will now do will work on the highlighted layer(s) only. You do not need to check or uncheck the checkbox to highlight a layer – just click anywhere else on the layer in the Legend (e.g. on the small symbol or the text) and that layer will be selected as the active layer. To select more than one layer to be active, hold down both the ctrl and shift keys, then use the mouse to click on the layers you want to make active in the Legend. All active layers will appear lifted in the Legend View. You can also deselect layers in this way.
Click on the layer sahel_generalised_borders in the Legend to make it active (it appears lifted), make sure the Identify Feature tool is active, and click inside the map (Mali in the example below).
You can also get the zoom and pan functions from the menu, under the Map option.
Under the map menu you also find the Properties option. Select the Properties option to see the Map Properties of your project.
So far you have only worked with vector map layers. But DIVA-GIS can also work with images (jpg, tif, sid and arc) and grid files (introduced in lesson 4). Use the Add Layer tool to add both a vector file and an image file showing land degradation, navigate to \data_spatial\sahel\mapdata\landstatus and add both the jpg and shp file for the layer sahel_glasod – you can select both at the same time by holding down the ctrl key.
The Global Assessment of Land Degradation (GLASOD) was the first attempt to map global land degradation. Experts around the world used uniform guidelines and international correlation to map the extent and severity of land degradation. GLASOD was funded by UNEP (1987-1990).
In the Data View the added layers end up at the top in the Legend. As the jpg layer is an image it covers all the layers below in the Legend, hence you can only see the image and the layers positioned above it in the Legend.
You can easily change the display order in DIVA-GIS. Use the mouse to grab the image layer for sahel_glasod (image), make it active and click and hold down the left mouse button, then drag the legend of the layer to the bottom of the Legend. A black frame will indicate the movement and position of the legend.
You can also change a layers legend position, and do other things, by making a layer active and then click the right mouse button pointing at the layer in the Legend. By doing that a small popup window will appear as shown below.
One of the options in the popup menu above is to include an overview map. To make an overview map you can also just click F7, or go via the menu: Map – Overview Map. You can toggle between including and excluding the map by clicking F7 (or one of the other options) again. Choose the layer you want to use for making an overview map, and make it active. Then right click on the legend, and click Add to Overview Map, in the popup window (the one shown above). In the example below, the sahel_generalised_borders layer was used to create the overview map. By right clicking in the overview map, you get different options for designing the overview map, including adding layers not used in the Data View.
With the overview map added you can use it for panning in the Data view. Simply click in the Overview map and the Data view will center on the point you clicked in the Overview map.
In the Identify window information about land degradation for the feature you clicked will be shown. The legend for GLASOD as symbolized (colored) in sahel_glasod.jpg is shown below, to see the full documentation click here. All the documents and backgrounds on the data layers, as well as jpg image files, and most legends can be reached via the project data catalog web-page.
The four last columns show the land degradation classes that GLASOD defined. The classification as shown in the image (sahel_glasod.jpg) is from the column SEV_A_LB (short for severity classification type A labels). GLASOD also identified the major (MAJ_LBL) and minor (MIN_LBL) causes for land degradation. In the folder that contains the GLASOD data, there are two jpg images showing the major and minor causes of land degradation. These images uses the standard symbolization for GLASOD major and minor causes, and you can use them as template if you want to recreate a symbolization for land degradation causes.
You can use DIVA-GIS to symbolize (i.e. put colors and patterns, text etc.) the GIS layers in the project. Lesson 2 focuses more on symbolization.
Make sure the Single tab is selected (as shown above) and click the small symbol in the middle of the Properties window (empty rectangle by default).The Symbol setting window will open, and you can now set the color and pattern you want for the layer sahel_glasod. For now just change the Style to Solid Fill in the drop down menu as shown below.
In the DIVA-GIS legend the GLASOD layer will be updated to show the color setting and the labeling will be taken from the field (column) in the attribute table used for symbolization. In the Data view the GLASOD map will have the corresponding color setting.
The colors that DIVA-GIS put for the GLASOD map were random, and you need to set more appropriate colors. You can use the layer for the image version of the GLASOD map sahel_glasod (image), to see the colors that GLASOD normally is shown with. To change the colors in the vector layer return to the Properties window, and just click on the individual rectangles for each feature class shown under the Unique tab. You can then set the colors for each feature class (Light, Moderate, None, Not Classified, Severe, Very severe) by clicking the small Color symbol in the Symbol window as shown below (left). This will open the Color window (below to the right). Just click on a color to select, click OK in the color Window, then OK in the Symbol window.
The standard colors that GLASOD uses are as follows:
Light: Yellow
Moderate: Green
Severe: Blue
Very severe: Red
None: Gray
Not classified: White
Try to set all of them using the symbolization options in DIVA-GIS. Remember to click the Apply button in the Properties window to apply the changes. If you got it right the vector layer for sahel_glasod should look similar to the pre-made image version of the same map. In the example below the layers showing cities (sahel_cities_large), borders (sahel_generalized_borders) and major rivers (sahel_rivers_large) are put on top of the GLASOD layer, and the symbolization is updated. You will learn more about symbolization in lesson 2.
A key function of GIS is to select features from the database (attribute table) for information. Make the GLASOD vector layer (sahel_glasod) the active theme and
You will work more with GLASOD in other lessons. Before ending this lesson, save your project (e.g. as lesson1 under the my diva folder)
The dataset contains a layer with district boundaries that you find in the database under \data_spatial\sahel\mapdata\politic\ sahel_admin_districts.shp. Add this data layer to your DIVA-GIS project. Symbolize the borders of the district layer so that you can easily distinguish country and district borders, and then use the Zoom tool to zoom in to a district you are interest in. As you will need to zoom in quite far, your project should have an overview map showing the position of the district. In the example below the country borders are set to color black with a line width of 3, and district borders are set to dark gray with a line width of 2.