Home

Mapping in QGIS for Health User`s Manual v.1

image

Contents

1. Figure 71 aba Filter aes Test Descripton Scale range Min scale 1 1000 Max scale 1 1000 O X Symbol Unit Millimeter Size 1 00 l Transparency 0 C i Rotation 0 0 Color C Saved styles hal Symbol layers D Marker Pa i 0 Simple marker airport arrow capital circle city ah C Ss ai n M E 5 Haale 7 Click the ellipse button for Filter This will open the Expression string builder window Figure 72 Version 2 0 48 Figure 72 Function list _ O 4 Selected function help Operators Group FF a PEIPER PE PINANI IEE NEIE VEE BE PETA AINE ES N PES OEE IN E EAE T This group contains operators eg l Math FF Conversions Date and Time tr String Color Geometry Record Fields and Values Recent generic Output preview In this window we will create a simple equation also called an Expression that will instruct QGIS to display only those sites that are PMTCT 8 Inthe Expression sting builder expand the list for Field and Values by clicking the plus box Figure 73 9 Double click PMTCT This will add the column PMTCT to our Expression Figure 73 H String F Color H Geometry EF Record Gl Fields and Values Facility_T Lat Type H Recent generic S 10 Click the Equals button under operators 11 Under Field values click all unique for Load values Figure 74 This will
2. amp Actions Joins E Diagrams weaned 0 e Canal Canal ri Construc Crossing Metadata z z z D E Dam Ditch Floodway Jetty Living s LockedRc Motorwa Motorwa Pedestrie Primary Residenti 4 Inthe Select Color window click the soft grey color under Basic colors Figure 27 Figure 27 Z Select Color Y a X rs Y x Add to Custom Colors 5 Click OK to close the Select Color menu Version 2 0 6 Click OK to close the Properties window Figure 28 Roads are now easily discernible from the administrative boundaries Figure 28 Layers Bx TZ THMIS_15_49ALL aE TZA roads L Tanzania_admi 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 Kilimanjaro Manyara Tanga EPS SP ie Dar Es Salaam yt Pwani 4 F i J i L 4 w 1 3 5 Zooming to and panning features on a map While formatting tools can greatly improve visual clarity small geographic features may still be too difficult to see when the entire map region is displayed Small details can be revealed by zooming and panning Zooming enlarges or reduces areas of the map while panning shifts the map display to a certain area 1 Inthe navigation toolbar click the Zoom in tool Figure 29 Figure 29 tA QGIS 2 20 Valmierg e Project Edit View Layer Settings Plugins Vector Raster Database Processing Help Fae BAQ 409 2 Inthe map disp
3. download the wmv file from the UCSF website listed in the introduction or stream through this link http youtu be Gv4c2 X4WYE After creating your table in the HTC Data Use Tool make a copy of your table and paste the values into a new Excel 2003 workbook Edit your new workbook as follows Figure 3 Row 1 must contain column headers The spreadsheet cannot contain any blank rows 3 The names of the geographical area to be mapped must be identical to the names in the shapefile 4 Rename the sheet name to match the file name Figure 7 5 Save the spreadsheet in Excel 2003 format xls not in Excel 2007 2010 format xlsx The file name should not have a period Note Any discrepancies between the Excel data and the Shapefile should be edited in Excel to match the contents of the Shapefile Figure 3 F Format Painter BiuU H js Clipboard Font J20 v fe D 20687 9 3 232308 33 56066 15 7 234767 3 4 69152 1 8 30223 1 9 26241 3 8 30069 15 15606 7 7 103382 9 2 190444 JL 89750 3 6 40626 5 6 164760 6 7 59573 4 9 55945 29 65912 7 4 207612 2 7 29450 6 4 109946 4 8 78816 23 a 4 gt TZ_THMIS_15 49ALL Ready Ca For the purposes of this manual use the workbook under the name TZ_THMIS_15 49ALL xlsx Version 2 0 zo 1 2 Mapping in QGIS After saving the data in as an Excel table begin using QGIS mapping software 1 Open QGIS Figure 4 The map design window is now visibl
4. 1 4 Creating a shapefile from x y Coordinates GPS receivers calculate and record specific locations on the earth s surface as x amp y coordinates or longitude and latitude respectively These coordinates can then be downloaded on to a computer and read by GIS software for spatial display In this section we will cover how to import and display GPS coordinates for health facility locations in Tanzania 1 4 1 Requirements for displaying coordinate point locations In order for QGIS to correctly display the coordinates as point locations the following criteria must be met 1 4 2 The user must know what Coordinate Reference System CRS was used by the GPS receiver to create the coordinates As mentioned the CRS provides a set of rules for defining spatial relationship between coordinates Just as GPS receivers use a CRS to calculate coordinates QGIS uses the CRS to align the shapefiles created under different systems The table of coordinates does not along contain information of the CRS users will be prompted to specify the CRS when importing the coordinates into QGIS Coordinate data must be in decimal degrees i e 18 4567 If coordinates are formatted as degrees minutes and seconds i e 18 27 24 12 consult with a GIS expert on appropriate conversion techniques Columns for longitude and latitude must be correctly labelled in the coordinate data file Coordinate columns can alternatively be labe
5. New Print Composer in the Project dropdown menu Figure 43 Version 2 0 320 Figure 43 Sox QGIS 2 2 0 Valmiera Tanzania _ Project Edit View Layer Settings Plugins Vector Raster Database Processing Help SOS SHS RPPAAS Qa N h E gt vi Sy E Ep PP abe 2 Inthe Composer title window type HIV prevalence Tanzania Figure 44 This title will help you stay organized when creating multiple map layouts Figure 44 Create unique print composer tite tite generated if left empty ox cance 3 Click OK The Print Composer window will now appear Figure 45 Version 2 0 330 Figure 45 Z HIV prevalence Tanzania Composer Edit View Layout Atlas Settings A 204 R8B amp G RA be HPPsFpe S keeodW BBR SHAG O pPpNRG A G ima ER oO OnO e O e O ees Ps teens PR easy t e D paea g L a e E 1 5 3 Adding a map to the map layout 1 Inthe Composer Items toolbar click the Add new map button Ud Figure 46 Figure 46 OPNE gR ke aey ER 2 Inthe Composition panel click and drag the cursor to specify where you want to position your map Figure 47 Note that QGIS will draw whatever is currently being displayed in the map design window If your map is not displayed correctly close Print Composer and re adjust the Zoom of your map in the map display window Leave enough space for a title and a legend Version 2 0 a Figure 47 AR
6. aan rR 0 pPNRL A R i397 Bg Composer Manager ia Print Composers e a n OL rc Oe ca l P00 i i x New from Template 4 Load from Template A Save as Template gt Export as Image among 15 49 year old by region in Tanzania W Main properties THMIS 2010 rare ti 7 we Pe 4 Asama Pn ine wa ae G if A a r ia Arrow head width 4 00 mm 4 gt 4 gt Line width 1 00 mm Page Setup Ctrl4 Shift4 P e 79 i teh at fe anp T ATANN wW Arrow markers Pa tthe Fits Vides A Ctrl Q a i is n an 3 Inthe next window select the desired image type Figure 58 4 Browse to the desired folder location and type the image name HIVPrevalenceTanzania Version 2 0 390 Figure 58 4 Choose a file name to save the map image as GOl Tanzania HealthMapper gt Search Health Mapper Organize v New folder ie Frae Ge Name Date modified Type E Desktop g TZA_adm 7 9 2013 3 21AM _File folder Downloads _ gi TZA rds 7 8 201311 59PM_ File folder Recent Places de Box Sync Dropbox UCSF F 3 Libraries Documents ad Music Pictures dill m j File name HIVPrevalenceTanzania v Save as type BMP format bmp BMP ICO format ico ICO amp Hide Folders JPEG format jpeg JPEG JPG format jpg JPG PPM format ppm PPM TIF format tif TIF TIFF format
7. tiff TIFF XBM format xbm XBM XPM format xpm XPM 5 Click Save 6 Close Print Composer 1 5 9 Saving Project files To simplify the process of building large complex maps users can save their work as a Project file Project files do not contain maps instead they contain information on where original shapefiles are stored and what processes are needed to recreate a map Before closing QGIS users should save their progress in a Project file so it can be used and edited in the future It is important to note that all shapefiles associated with the map must stay in their original location If they are moved QGIS will not be able to locate the files and rebuild the map 1 Click the Project drop down menu and select Save as Figure 59 Figure 59 b FPICTUPES h J en P File name TanzaniaHTC Save as type QGIS files qgs QGS Hide Folders Giit 2 Inthe next window browse to the desired location and enter the file name TanzaniaHIV Ensure the file extension is qgis 3 Click save 4 Close QGIS 1 5 10 Opening a Project file After saving a project file you can open it at a later date to continue working Version 2 0 w 5 Open QGIS 6 Inthe Project drop down menu click Open 7 Browse and select the Project file as saved in Section 1 5 9 TanzaniaHTC 8 Click Open 1 6 Advanced Mapping Techniques in QGIS In the previous sections we focused on the nuts an
8. 0 e Figure 14 Name Type Type name Region QString V double double HIVpos gt Suppress attribute form pop up after feature creation Default v Restore Default Style Save Style ee ee ee 6 Close the properties window 1 2 5 Joining data To visualize the imported Excel data TZ_THMIS 15 49ALL we need to join it to data in the shapefile attribute table Tanzania_adm1 Tables and shapefiles can be linked via a common attribute column Note that while the attribute values must be identical the column name can be different For this example we will join based on the region name titled Region in the dataset and Name 1 in the shapefile 1 Open the Properties window for the shapefile that will be used in the join 2 Click the Joins tab and select the Add vector join button Figure 15 Version 2 0 a Figure 15 JW Layer Properties Tanzania_adm1 Joins No General Style Labels Fields Rendering r Display kO Actions EE Diagrams i Metadata Restore Default Style oc j e In the Add vector join window we will specify what data will be joined to the shapefile and what fields should be used to match the data Join layer and Join field dropdown menus refer to the dataset while the Target field dropdown menu refers to the shapefile Figure 16 3 Select the data to be joined from the
9. 0 gt First record has field names Field options Trim fields Discard empty fields Decimal separator is comma Geometry definition Point coordinates Well known text WKT No geometry attribute only table X field v Y field x DMS coordinates Use spatial index Use subset index Watch file a M i Fadlity T Lat Long vcr cr Pmrcr ART HBC Type Health Centre Urban 8 07 37 2317 VCT Government Health Centre Urban 4 879 33 3366 VCT CT PMTCT Government Health Centre Rural 4 1131 32 4641 VCT PMTCT Government Health Centre Rural 1 927431 8195 VCT PMTCT Government Health Centre Rural 4 6574 36 3244 VCT Government Health Centre Rural 5 3194 38 4601 VCT Government EFERERE X and Y field names must be selected 5 Under Geometry definition select Long for the X field and Lat for the Y field Figure 37 Figure 37 Geometry definition Point coordinates Well known text WET No geometry X field Long field Lat DMS coordinates Layer settings Use spatial index Use subset index Watch file Health Centre Urban 8 07 37 2317 VCT Government 2 Health Centre Urban 4 879 33 3366 VCT CT PMTCT Government 2 Health Centre Rural 4 1131 37 4441 wet ENTOT Geavernment 6 Click OK 1 4 3 Specifying a Coordinate Reference System Before adding coordinates QGIS prompt users to specify a CRS Since the GPS receiver capturing coordinates used WGS
10. 3 30000000000 0 60000000000 2 00000000000 3 80000000000 1 70000000000 1 60000000000 2 20000000000 4 70000000000 3 400000000000 1 800000000000 1 900000000000 3 800000000000 1 500000000000 7 700000000000 9 199999999999 5 100000000000 3 600000000000 5 600000000000 6 700000000000 4 900000000000 5 900000000000 7 400000000000 69152 000 30223 000 26241 000 30069 000 15606 000 105382 00 190444 00 89750 000 40626 000 164760 00 59573 000 55945 000 65912 000 207612 00 20 00000000000 0 80000000000 2 700000000000 29450 000 21 00000000000 3 30000000000 6 400000000000 1 6 9 3 33 15 7 34 1 8 1 9 3 8 15 7 7 9 21 5 1 3 6 5 6 6 7 4 9 5 9 20687 232308 234767 69152 30223 26241 15606 o rm 2 ru eo rm 6 p 8 9 10 11 12 13 14 15 16 17 18 19 109946 00 A F Show All Features 1 3 Stylizing Formatting and Managing Maps This next section will cover the basic principles of map design which involves conveying information e g HIV prevalence as polygons or points on a map 1 3 1 Creating a Graduated Map A graduated map relates indicators values to color gradients on a polygon map each color gradation corresponds to a specific interval of indicator values For this example regions in Ta
11. 84 QGIS must also use WGS 84 when drawing the new point layer While WGS 84 is acommonly used CRS it may not be used for every coordinate data file you encounter Always check the CRS with the individual or organization that created the coordinates before importing into QGIS 1 Under Coordinate reference systems of the world click the plus box next to Geographic Coordinate Systems to expand the selection Figure 38 Version 2 0 EEn Figure 38 La J Coordinate Reference System Selector Specify CRS for layer Facilities Tanzania Filter Recently used coordinate reference systems Coordinate Reference System Authority ID NSIDC EASE Grid Global EPSG 3410 Arc 1950 EPSG 4209 Africa_Albers_Equal_Area_Conic EPSG 102022 WGS 84 EPSG 4326 World_Mercator EPSG 54004 WGS 84 Pseudo Mercator EPSG 3857 a a Coordinate reference systems of the world Hide deprecated CRSs Geographic Coordinate Systems HH Projected Coordinate Systems User Defined Coordinate Systems Selected CRS WGS 84 proj longlat datum WGS84 no_defs 2 Scroll through the Coordinate Reference Systems until you reach WGS 84 and click to select Figure 39 Figure 39 Coordinate reference systems of the world Hide deprecated CRSs Coordinate Reference System Authority ID EPSG 4326 IGNFWGS726 EPSG 4733 3 Click OK A layer called Facilites Tanzania is now created Figure 40 Notice that the new layer nicely overlays the re
12. Selection As Filter Show Feature Count Properties 2 Inthe properties window select the General tab in the left hand pane to view the CRS Figure 9 WGS84 is listed under Coordinate reference system as the CRS for this shapefile Figure 9 Jf Layer Properties s Tanzania adm General w Layer info Layer name Tanzania _adm1 displayed as Tanzania _adm1 Layer source 2x UCSF PPHG M amp E Team HTC Mapping 2 Tools Users manual Users Manual v3 0 Shapefiles v3 Tanzania_admi shp Labels Data source encoding UTF 8 X MG w Coordinate reference system EP5G 4326 WGS 84 Create spatial index Update extents Rendering r Display EO Actions Joins v Scale dependent visibility Maximum D fio A hisreen s 1 100 000 000 indusive ER Diagrams Current Current i Metadata As will be discussed in Section 1 4 3 shapefiles created from raw coordinates require that the CRS is entered manually Version 2 0 100 1 2 3 Importing Excel data In order to link a shapefile to data you must first import the excel data file into QGIS 1 Click on the Add Vector Layer button 2 Select Browse in the Add vector layer window Figure 10 Figure 10 Layers Ves E x _ Tanzania admi P Add vector layer 3 Browse to your Tanzania data Excel table created in Section 1 1 TZ_THMIS_15_49ALL xls Figure 11 If you do not see the file you are looking for
13. X 54 y amp Alignment horizontal vertical FE D El Dntalinn d Sal eee Since we only want to show labels we need to make the new layer transparent so that it does not obscure other shapefiles Just as we stylized our first Tanzania regional layer in Section 1 3 1 we will remove the gradient in the Style Tab of the Properties window 11 Without closing the Properties window open the Style tab 12 In the drop down menu select Single Symbol Figure 65 13 Under Symbol layers click Simple fill 14 Click the dropdown menu for Fill style and select No Brush Version 2 0 44 Figure 65 a Single Symbol Y Symbol layer type Simple fill Colors Fil CS coder S Fill style No Brush Border style Solid Line eee g E Border width 0 26000 Millimeter Offset X Y 0 00000 l o o0000 Millimeter Data defined properties ce ewes Load Style Save As Default Restore Default Style Save Style z x Ca C e 15 Click OK to close the Properties window Notice that each region now has a name and an associated HIV prevalence value Figure 66 Figure 66 Sor j gt 9 i Yy Kenya T I YL aa T Y i i Kilimanjaro 1 9 Manyara et 15 ba Tanga T 4 8 a i wz 4 Dar Es Salaam Pwani 952 ey 4 Morogoro g S 5 1 i k Ne 1 6 1 Editing Attribute Data You may wish to change the spelling of text or the appearance of values in your Attribute Tabl
14. and care as well as other programmatic areas Users of this manual are required to download QGIS 2 2 0 Valmiera a free software program created under a General Public License QGIS 2 2 0 Valmiera is compatible with Windows XP or higher MacOS X Linux and FreeBSD There are no formal system requirements however 1 GB RAM and 1 6 GHz processor are generally recommended The manual is designed to provide users with a solid background and understanding of the mapping process It is most useful as a preparation tool for those who will take part in an HTC Data Use and Strategic Planning workshop or those who have completed a workshop and may need to refer back to the concepts and processes at a later time All materials related to this manual and the HTC Data Use and Strategic Planning Tool can be found here http globalhealthsciences ucsf edu prevention public health group global strategic information gsi monitoring and evaluation hiv testing Version 2 0 ao Vocabulary for Mapping Administrative levels An area of a country defined for the purposes of government or administration such as region province or district Shapefiles used for mapping are distinguished by administrative levels where higher number administrative levels represent a smaller administrative level For example in Tanzania administrative level O is the national level administrative level 1 is the regional level administrative level 2 is the district level a
15. water geographic borders e Health facility locations To create a map mapping software e g QGIS ArcGIS Epi Info links a program or survey data file to coordinate data stored in shapefiles files made up of latitude and longitude geographic coordinates by matching the same attribute between the two files such as a Unique ID or administrative level This linked data is manipulated in the mapping software to display values and labels from the data as colors or points on a map as shown in Figure 2 Important information such as roads and water can be added to the map as additional layers Figure 2 Throughout this chapter we will use data from Tanzania to answer the question Where do the HIV prevalence rates differ in magnitude 1 1 Preparing Data in Excel To import HIV indicator data in QGIS data aggregated by geographical level must first be saved in Excel 2003 format xls not in Excel 2007 2010 format xlsx Data to be imported into QGIS will first need to be made into a table using the excel based HTC Data Use Tool Column A of your table should be the geographic level to be displayed on the map e g region Version 2 0 eo district ward etc The subsequent columns of the table should be all indicators to be mapped Please refer to the HTC Data Use Tool User s Manual for instruction on how to create tables in the tool For a step by step video tutorial on How to prepare data for use in Epi Info
16. Data 6 5 2014 3 57 PM a Music TanzaniaData_xlsx 6 6 2014 10 26 AM E Pictures TZ_THMIS_15_49ALL 6 6 2014 11 28 AM E Videos Filename Tanzania_admi shp 4 Click Open in the Add Vector Layer window The Tanzania administrative boundary shapefile is now open in the QGIS application window Figure 7 Figure 7 ee E a ol Project Edt View Layer Settings Plugins Vector Raster Oatabase Processing Help 1BBBBRAAYTSFAASFHPOLRAS 42C RN RE BE aD 3 Be 0B UB UE MG B 2 aC RR LC HY J j 5 A kiil o ia Sir S o a a md amp ver A FF o neaxt D More byes DS coordnate 39 07 1 97 Scale 17 729 228 gt F Render ersc 4325 1 2 2 Verify Coordinate Reference System When shapefiles are first created from GPS coordinates the CRS may sometimes be dropped from the data in this case the user must specify the CRS manually when loading it into GIS software Before preforming complex mapping procedures users should ensure that the shapefile specifies the correct CRS If no CRS is specified consult with the institution that created the shapefile to determine the original CRS 1 Right click on the Tanzania_adm1 layer and select Properties Figure 8 Version 2 0 oo Figure 8 Tanzania admi Zoom to Layer Extent Show in Overview gt Remove La Duplicate Set Layer CRS Set Project CRS from Layer Open Attribute Table J Toggle Editing Save As Save
17. HTC Data Use Tool User s Manual Module 2 Mapping with QGIS ULH Ys pula yer Teste em 2 638 889 _ 34 5 3 6 Centra 1 802 469 40 0 8 1 3 000 000 oo arnt pe 2 079 545 paan 56 25 ga 625 000 Nairobi 70 0 8 f North Eastern 34 8 14 9 ps o on gd 30 7 63 4825 39 5 ever been tested and or has been Rift Valley 30 7 5 4 2 129 Western 0 a ER aie tested HIV positive by region district in relation to HIV prevalence Region District m Population Ever Tested Prevalence Global Strategic Information UCSF Global Health Sciences Contact us htctool ucsf edu Version 2 0 3 14 2013 Table of Contents FEOF COMEN reg nacre E E E E E E ome E A E ona E T 2 How to Use This Module sssssssessessssssseeersssssssrrrrsssssssrrrresssssserrresssssserereessssserereeessssserereessssseerreessssserreeee 4 WOE AD Aly TOR NADINE e E 5 1 Introduction to mapping with QGIS and the HTC Data Use Tool 6 LLE co 62 ego DRINE ere nC a 6 L2 AVVO INAS WA CGS ars scans cnet A see ae en tects see eden eaneseran ruta reaeeraeeniens 8 1 2 1 PRICE SAS NOG wis hares ct yaa N nee nce ean sea ace ceeaeukc sevatewaceetyatevaretseesacteetssaeohevarectycbans 8 1 2 2 Verify Coordinate Reference Syst M i sccscuciccecscsnneascctavganestnwestenndscndssauecssoraesainceaeucenodeinentereans 9 1 2 3 ieaie aaia Aae E E E ec E E A E EE E AA E AE 11 1 2 4 Confirming Data IMPOTT sisi scesstncdesssat
18. Join Layer drop down menu TZ_THMIS_15_49ALL the name of the geographic field in the table Region and the geographic field in the shapefile Name_1 Figure 16 Figure 16 W Add vector join Join field Target field NAME_i Cache join layer in virtual memory _ Create attribute index on join field 4 Click OK to close the Add vector join Version 2 0 15 5 Click OK to close the Properties window 6 Reopen the shapefile s attribute table to ensure that the Attribute table now has additional indicators signifying that the join was completed successfully Figure 17 Figure 17 Attrioute table Tanzania_adml Features total 21 filtered 21 selected 0 jB eE 9 LJ a RegionCode prvythT TzHIVPrev_ TzHIVPre_1 TZ_THMIS_15_49ALL_HIVPrev TZ_THMIS_15 49ALL HIVpos 1 00000000000 2 00000000000 3 00000000000 0 50000000000 3 20000000000 1 00000000000 1 600000000000 9 300000000000 3 300000000000 20687 000 232308 00 56066 000 4 00000000000 5 00000000000 6 00000000000 7 00000000000 8 00000000000 9 00000000000 10 00000000000 11 00000000000 12 00000000000 13 00000000000 14 00000000000 16 00000000000 17 00000000000 18 00000000000 19 00000000000 4 80000000000 15 69999999999 234767 00 0 70000000000 1 60000000000 0 00000000000 3 20000000000 2 40000000000 2 90000000000
19. Malawi and Mozambique Figure 61 Figure 61 Version 2 0 CE 1 6 2 Adding Secondary labels In Section 1 3 1 we explored creating gradient maps by dividing the range of HIV prevalence values into equal intervals Users may also want to see the prevalence values displayed in the respective provinces as a second set of labels As described in section 1 3 2 QGIS can add one label per layer so we will need to add a second duplicate layer to display secondary labels For this example we will duplicate our Regional Tanzania layer to display the HIV prevalence values for each region 1 Right click on the Tanazania regional layer Tanzania_adm1 and select Duplicate QGIS will add a new layer to the contents panel Tanzania_adm1 copy Figure 62 This layer is exactly like the one above it Figure 62 H Tanzania admi 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 L Tanzania_adm1 copy 2 Right click the new layer Tanzania_adm1 copy and select Rename 3 Rename the layer HIV Prevalence Values 4 Enable the layer by clicking the checkbox next to the name Since duplicate layers are displayed each region contains two identical name labels Figure 63 Figure 63 Layers E x j Uganda TZ_THMIS_15_49ALL Bl Facilities Tanzania x TZA_roads D x L Tanzania_admi 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 E HIV Prevale
20. The map layout also contains information that helps users orient themselves to the location and context of the information being presented 1 5 1 Rules for constructing map layouts Regardless of content or style all map layouts require certain features to contextualize the information presented The following are minimum features that should be included on all final maps 1 5 2 Legend defines the symbols or colors used on a map The legend should clearly define what each marker line type color or pattern represents Title easily identifiable descriptive text that indicates location and purpose of the map The title is the largest text on the layout but does not dominate the map itself Border a thick line drawn around the map that identifies exactly where the mapped area stops The border should be thick and the map should be centered within the border Scale a graphic bar that indicates the relative size of the map may not be necessary for all audiences Orientation graphic indication of which way is north This is commonly done through a north arrow Creating a map layout in Print Composer The print composer is a QGIS module separate from the map design window that allows users to design a map layout and export as an image or PDF In this scenario we will export the map as a jpeg image that can be pasted into a word document a powerpoint presentation or shared online 1 To open the Print Composer click
21. _roads or 4 AOS Le j F pose a El g C admi kS 5 frusha a9 Burundi 16 6 o eae 1 50 4 54 G 4 35 7 18 Kilimanjaro F 7 19 10 02 o oo 19 d 10 03 12 86 a 12 87 15 70 E HIV Prevalence Values i 5 C Africa E D i I hareetSalaam p Pwani bE x hi oqo 6 7 A Morogarc gal Version 2 0 sa
22. add three values to our Field values box Version 2 0 490 12 Double click PMTCT Our expression will now appear as PMTCT PMTCT where the double quotations indicate variable and single quotations indicate value Figure 74 Function list Selected function help Search Field Double click to add field name to expression string Geometr Record r Right Click on field name to open context menu sample E Fields and Values value loading options pe Facility Field values Lat Long ART HBE Type H Recent generic e Load values all unique 10 samples E E Y Operators Sj asini aa anian aia min alla miala PMTCT PMTCT 13 Click OK This will close the Expression string builder 14 Click OK in the Rule properties window to return to the Properties window Note that our new expression has been added as a rule Figure 75 Version 2 0 w Figure 75 E li Refine currentrules Count features Rendering order Load Style Save As Default Restore Default Style Save Style z Tae Eea tr re 15 Click the row indicated as no filter to highlight the default rule 16 Click to red minus button to delete 17 Click OK Note that only PMTCT sites are now displayed in our map Figure 76 Figure 76 Layers g p gale N Sor TzZ_THMIS_15_49ALL 1S Pa A El Facilities Tanzania Y PMTCT Kenya we El TZA
23. at the value 4 34 is included in both the first and second intervals in reality QGIS only includes this value in the first interval Therefore if a region s HIV Version 2 0 p prevalence is exactly 4 34 it will be colored white not baby blue To reflect this convention we need to edit the interval labels 5 Under Label double click the range and increase the lower bound For this example double click 4 3400 7 1800 and type 4 35 7 18 6 Repeat this process for each subsequent interval until all labels accurately reflect its contents as in Figure 20 Figure 20 Graduated Column TZ_THMIS_15 49ALL_HIVPrev Symbol change Color ramp ig source In 1 5000 4 3400 1 50 4 34 4 3400 7 1800 4 35 718 7 1800 10 0200 7 19 10 02 10 0200 12 86 10 03 12 86 7 Click OK The map now shows five classifications of HIV prevalence ranging from lowest to highest values with darker colors representing higher values Figure 21 Figure 21 3 Tanzania admi 1 50 4 34 4 35 7 18 7 19 10 02 Version 2 0 oan 1 3 2 Adding Labels Geographic features such as regions provinces or districts can easily be labelled using any data found in the attribute table e g Region Names indicator values etc In this example each region of Tanzania will be labeled by displaying on the contents of the NAME_1 column in the Attribute Table 1 Open the Pro
24. ation This system works by assigning or referencing data to a geographic location on the earth s surface to create a digital representation of the world Geographic Information Systems can geographically display non spatial data such as prevalence or testing coverage by associating values with specific locations or areas on a digital globe or atlas Layer The visual representation of a single data source ina GIS One layer represents one theme of the map such as a road network or hospital locations A final map is made up of multiple layers For example roads political boundaries and rivers might be considered different layers on the same map Figure 1 Shapefiles Files specific to mapping that contain geographic coordinates indicating point locations or physical boundaries To use a shapefile in a mapping program all files batched with the shapefile dbf sbn sbx shx must be saved on the computer in the same location as the shapefile shp cs CEELI p E ee ENESENN SEPA AN H Version 2 0 e 1 Introduction to mapping with QGIS and the HTC Data Use Tool Mapping software use geographic information systems GIS and health data from national regional or district levels to create simple maps that show spatial relationships For example maps can show the relationships between e HIV prevalence incidence data e Programmatic data e g number tested number counseled e Roads
25. change the file type to All files Figure 11 Open an OGR Supported Vector Layer N all Users Manualvw3 0 Shapefiles w3 I Organize New folder Ww Favorites Mame Date M Desktop of Tanzania 4 16 2014 9 10 AM mi Downloads amp Tanzania_adml cpg 6 10 2014 8 43 AM CPG File El Recent Places d amp Tanzania_adml 6 10 2014 8 43 AM DBF File ms Box Sync amp Tanzania_adml 6 10 2014 8 43 AM PFJ File 3 Dropbox UCSF amp l Tanzania_adml qp 6 10 2014 8 43 AM QP File Tanzania_admil shp 6 10 2014 8 43 AM SHP File Libraries l gw Tanzania_admi shx 6 10 2014 8 43 AM SHX File E Documents TZ_THMIS_15_49ALL 6 6 2014 11 28 AM Microsof a Music E Pictures E Videos Filename TZ_THMIS_15 49ALL Allfiles v 4 Click Open Version 2 0 pa 5 Click Open in the Add Vector Layer window The Excel data will now be available as a table in the Layer menu 1 2 4 Confirming Data Import Before mapping this Excel data ensure the import was successful by checking the contents of the attribute table and Metadata The attribute table allows users to view data associated with tables and shapefiles while the Metadata tells users what type of data is contained within the attribute table e g text numbers etc 1 Right click on the imported table TZ_THMIS_15 49ALL Figure 12 Figure 12 Layers Elx 4 1 anzar Zoom to Layer Extent Show i
26. cking on the respective Fonts buttons In our legend Title font refers to the text Legend Subgroup font refers to HIV Prevalence and Item font refers to everything else 1 5 7 Indicating scale and direction in a map layout 1 Click the Add new scalebar in the Composer toolbar 2 Click on the desired location in the map layout to place the scale bar Figure 55 For this example place the scale bar within the bounds of the map border Figure 55 F 3 Click the Add arrow tool Z in the Composer toolbar 4 Inthe map layout click and drag the cursor directly up to represent North Figure 56 Version 2 0 38 Figure 56 5 Use the Select Move item tool AS in the Composer toolbar to reposition the new items as necessary 1 5 8 Exporting map layout Map layouts can be exported as images or PDFs The file type you choose will depend on how you are using the map If the maps are to be used as stand alone hard copies then PDF s may be most appropriate if the maps are to be imbedded into documents presentations emails or websites then images may be more effective Note that the exported map layer cannot be edited once it is in an image or PDF file 1 Click the Composer drop down menu in the Print Composer window 2 Click the Export as Image option Figure 57 Figure 57 F Save Project Ctrl 5 sem e an aA az New Composer Ctrl4N te i HP PPS Bk 4 Gp amp
27. d bolts of creating and formatting maps to covey important information In this section we will focus on additional tips and tricks that can help users to get the most out of QGIS While not essential these techniques can help users to become even savvier in the art and science of GIS 1 6 1 Adding a base layer A base layer provides geographical context to a region of interest For example a base layer might help viewers orient themselves to a specific country by displaying the surrounding countries or oceans For our purposes we will be adding a base layer shapefile of Africa to provide geographical context to Tanzania 1 Click the Add Vector layer button Va in the Layer toolbar 2 Click Browse in the Add vector layer window 3 Browse to and select the base layer shapefile Africa shp 4 Click Open QGIS will prompt you to specify a CRS 5 Select WGS 84 as the CRS and click OK This will add the base shapefile of Africa as a layer Figure 60 Notice that because the layer was added on top of all our other layers our previous map is now obscured Version 2 0 41 Figure 60 7 19 10 02 10 03 12 86 12 87 15 70 6 Inthe layer list click and drag the Africa layer to the bottom of the list Our previous map of Tanzania will now be visible on top of our base layer 7 Label the Africa layer using the column NAME see Section 1 3 2 Our previous Tanzania map should now be nestled by Kenya Zambia
28. ds and facility locations QGIS stacks layers from the bottom up so larger features such as polygons should be on the layer below smaller features such as points and lines For this scenario we will be adding a road shapefile on top of the region shapefile 1 Click the Add vector layer button 2 Inthe Add vector layer window click Browse 3 Browse to the Tanzania road shapefile TZ_roads_paved shp and click Open 4 Click Open once more to add the road shapefile to the map Figure 25 Be sure the TZA_roads layer is above the Tanzania_adm1 layer in the layers window To move a layer click and drag that layer to its desired location in the list Figure 25 Layers E x E TZ_THMIS_15_49ALL E TZA_roads EE 9 Tanzania admi 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 1 3 4 Formatting Line Layers Additional layers may have lines that are difficult to distinguish from other layers such as roads and region borders In this example we will change the color of the roads to a lighter color than the color of the region borders 1 Open the Properties window for the TZA_roads layer 2 Click the Style tab Version 2 0 a 3 Within the Style tab click the rectangle Color button Figure 26 Figure 26 4 Kj Layer Properties TZA_roads Style a imes PR General Labels ML Unit Millimeter z Transparency 0 e Width Color E Rendering r Display
29. e 1 Inthe Layers panel right click on the file you wish to edit Tanzania_adm1 Version 2 0 45 2 Select Open Attribute Table Figure 67 3 Open the Properties window for the same layer Figure 67 Layers Ex Show in Overview d Remove C4 Duplicate Set Layer CRS Set Project CRS from Layer H Open Attribute Table Save As Save Selection As Filter Show Feature Count Properties Rename Copy Style Add New Group E Expand all ET Collapse All x Update Drawing Order 4 Inthe Attribute Table select Toggle Editing to allow editing of the table 5 Double click within a cell in your Attribute Table and enter the desired value or text 6 Select save changes to confirm changes Figure 68 Note that changes made to a shapefile are permanent and cannot be undone As a precaution you may wish to make changes in a duplicate layer so you can revert back to the original layer in the case of errors Figure 68 w Attrioute table Tanzania_adm1 Features total 21 filtered 21 selected 0 Soe Ra E e J F J Ms Ms i RegionCode prvythT TzHIVPrev_ TzHIVPre_1 TZ_THMIS 15 49ALL_HlIVPrev TZ_THMIS 15 49ALL_HIVpos 1 00000000000 0 50000000000 1 600000000000 20687 000 1 6 2 00000000000 3 20000000000 9 300000000000 232308 00 9 3 3 00000000000 1 00000000000 3 300000000000 56066 000 KB 1 6 2 Rule based Styles for Points You may
30. e Figure 4 X QGIS2 2 0 Vaimiera lt lt a Project Edit View Layer Settings Plugins Vector Raster Database Processing Help C ARMOFs PsSHPN Age QA N ALERS PAA m UA Ar Mi Ei Vii Mii A IE 4 Ep ip a ow S amp S a cu T p So s go Ed e R P Beea aR h aay Ye G O a E ew FO interact B More Layers EIE Va m 4a Q D fa amp Ve 2a V be a B cooranate 608 See 75 79 gt 7 Render ese 1 2 1 Adding shapefiles First add administrative boundaries for Tanzania by loading a vector shapefile Ve 1 Click on Add vector layer button 2 Inthe Add vector layer window click Browse Figure 5 Figure 5 4 Add vector layer Source type File 3 Browse to where the Tanzania shapefile is saved on your computer Tanzania_adm1 shp Figure 6 Version 2 0 ao Figure 6 Z Open an OGR Supported Vector Layer JJ J Users Manual v3 0 Shapefiles v3 Organize v New folder A X Cue Name Date Type EE Desktop amp Tanzania 4 16 2014 9 10 AM QGIS Proj ih Downloads Tanzania_adml cpg 6 10 2014 8 43 AM CPG File E Recent Places Tanzania_admi 6 10 2014 8 43 AM DBF File Je Box Sync gi Tanzania_admi 6 10 2014 8 43 AM PRJ File 23 Dropbox UCSF _ Tanzania_adm1 qpj 6 10 2014 8 43 AM QPJ File l Tanzania_admi shp 6 10 2014 8 43 AM SHP File G Libraries Tanzania_adm1 shx 6 10 2014 8 43 AM SHX File 2 Documents EI Tanzania
31. ee ee ee ce es a 0 50 I PORI 150 io gt 4 GP 1 5 4 Adding a Title 1 Inthe Composer tools toolbar click the Add new label tool e 2 Click a point on the map where you would like to place your title A small box with the letters QGIS will appear where you clicked 3 Click and drag your cursor to one edge of the box to increase its size Figure 48 Figure 48 4 Click the Item properties tab in the side bar window 5 Under Main properties enter HIV Prevalence among 15 49 year old by region in Tanzania THMIS 2010 into the text box Figure 49 This will be the title of our map 6 Click Font Figure 49 Version 2 0 350 Figure 49 Composition Item properties Atlas generation Ttem properties Label w Main properties HIV Prevalence among 15 49 year old by region in Tanzania THMIS 2010 Render as HTML Insert an expression Font Font color w Alignment Horizontal Left Center Right 7 In Select Font window change Size to 22 and Font to Bold Figure 50 Figure 50 B 4 Select Font L _ Font Font style MS PGothic a Normal MS PMincho Bold MS Reference Sans Serif Italic MS Reference Specialty Bold Italic MS Sans Serif MS Serif MS Shell Dlg 2 c RAC IN Cathie Effects Strikeout 8 Click OK 9 Back in the Item properties tab under Alignment select Center Figure 51 Figure 51 w Alignment H
32. gional layer Version 2 0 on Figure 40 Layers E x TZ_THMIS_15_49ALL TZA_roads Facilities Tanzania Tanzania_adm1i 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 1 4 4 Formatting Point Layers Similar to polygons and lines we can also format point layers 1 Right click the Facilities Tanzania layer and open the layer s Properties 2 Click the Style tab 3 Click the rectangle next to Color to open the Select Color window 4 Select red and click OK 5 Click the Size text box and enter 0 75 Figure 41 Version 2 0 w Figure 41 Single Symbol v Unit Millimeter MS Size 75 Rotation 0 0 Color mE Saved styles X Symbol layers cl e Marker gt t ad O Simple marker airport arrow capital circle city S o gt diamond ellipse pentagon square star sr A gt star2 star3 triangle triangle2 ej l all all Symbol Advanced 7 Load Style Save As Default Restore Default Style Save Style z a Cet Cae i 6 Click OK The result is an easy to read map Figure 42 Figure 42 Version 2 0 1 3 Finalizing and exporting maps We have now created a well designed map that illustrates regional variations in HIV prevalence in Tanzania However to facilitate use in decision making we need to bring it out of QGIS and format the map for printing This process occurs in the map layout
33. lay click and drag the cursor to draw a rectangle around the area you wish to Zoom in Dar Es Salaam and then release the mouse button Figure 30 Version 2 0 23o Figure 30 3 The resulting map displays only the zoomed area of Dar Es Salaam Figure 31 Figure 31 Version 2 0 a fin 4 To pan to a different area in the navigation tool bar click the Pan button 5 On the map click and drag the cursor to show what you want displayed in the window In this example moving the pan tool upwards will display the area below Dar Es Salaam Pwani Figure 32 Figure 32 6 To zoom out click the Zoom Out tool in the navigation bar and click anywhere in the map Notice that with each click more of Tanzania can be viewed with less detail 7 To return to the original view as seen in Figure 30 click the Zoom to Full tool is in the navigation toolbar This will zoom out to reveal the extents of all layers contained within our map Alternatively if we want to view a particular layer right click on the desired layer and select Zoom to Layer Extent Figure 33 Figure 33 Layers ies TZ_THMIS_15_49ALL E W TZA_roads fg P Tanzania admi eran to Layer Extent 1 50 4 544 Show in Overview 7 19 10 02 g Remove 10 03 12 86 _ Duplicate 12 87 15 70 set Layer CRS Set Project CRS from Layer FS Onen Attribute Tahle Version 2 0 250
34. lled x and y respectively The coordinate data file must be saved as a csv Importing coordinate data 1 Click the Add text delimited layer button 95 on the Manage Layers toolbar Figure 34 Version 2 0 260 Figure 34 2 Inthe Create a Layer from a Delimited Text File window click browse Figure 35 Figure 35 CSV comma separated values Custom delimiters Record options Number of header lines to discard 0 First record has field names Field options Trim fields Discard empty fields Decimal separator is comma Geometry definition Point coordinates Well known text WKT No geometry attribute only table X field v Y field z DMS coordinates Layer settings Use spatial index Watch file Please select an input file 3 Inthe next window browse to the appropriate folder and select the coordinate data file Facilities_Tanzania csv 4 Click Open to return to the Create a Layer from a Delimited Text File window Figure 36 Notice that the table preview includes x and y coordinates labelled Long and Lat respectively Version 2 0 a Figure 36 Create a Layer from a Delimited Text File File Name inkeating Dropbox HTC Mapping 2 Tools Users manual Manual Tools_13Mar2013 Fadiities Tanzania csv Layername Facilities Tanzania Encoding UTF 8 Z File format CSV comma separated values Custom delimiters Regular expression delimiter A Record options Number of header lines to discard
35. n Overview gt Remove C Duplicate set Layer CRS Set Project CRS from Layer Open Attribute Table Save As Save Selection As Filter Show Feature Count Properties Rename Copy Style Add New Group EI Expand all ET Collapse All x Update Drawing Order 2 Select Open Attribute Table Notice that our Attribute Table now contains the same information as the Excel file from Section O Figure 13 While this data looks similar view the file s metadata to determine whether QGIS is representing numerical data as actual numbers and not text strings Version 2 0 a Figure 13 4 Attribute table T2_THMIS_15_49ALL Para total rah ap 21 selected gt meso EB EB te S ele EE Region HivPrev Arusha Dar Es Salaam o ra 2 iad 4 Find 6 7 8 9 10 11 12 13 14 15 16 17 18 s 19 20 bd Show All Features 3 Close the Attribute table by clicking on the Close button 4 To view the Metadata right click on the table TZ_THMIS_15 49ALL and select Properties 5 Inthe Layer Properties window select the Fields tab Figure 14 Each row in the metadata should correspond to a field column in our Attribute table Under Type the geographic variable e g Region should be list as QString text data while indicators e g HIVPrev and HIVpos should be listed as either Real or integer numerical data Version 2
36. nce Values 1 50 4 34 4 35 7 18 7 19 10 02 10 03 12 86 12 87 15 70 El L Africa a os Kilimanjaro Se te Version 2 0 430 5 Click the checkmark box next to TZA_roads and Facilities Tanzania to disable the roads and facility layer This will make the next addition easier to see 6 Right click the HIV Prevalence Values layers and select properties 7 Inthe Labels tab click the Label this layer with dropdown menu and select TZ_THMIS_15_ 49ALL_HIVPrev Since there are two labels for each region we need to change the placement so they do not overlap 8 Click Placement Figure 64 9 Under Placement select Offset from centroid Figure 64 This will allow us to specify where the label should be placed in relation to the center of the polygon 10 For Quadrant click the bottom right button Figure 64 This will set our labels Figure 64 abe Text Placement ab c Formatting Offset from centroid Horizontal slow ital abe Buffer Around centroid Free slow Background J chadaw Using perimeter Placement Centroid visible polygon whole polygon _f Rendering Ti 7 e Quadrant lt abe o bel abe Gbe lt abe dabe sabe dabe Offset X Y 0 0000 0 0000 gt a mm 4 3 F Rotation 0 00 Y Data defined Coordinate
37. nd administrative level 3 is the ward level Coordinates Numerical values that represent specific point locations on the surface of the earth Geographic coordinates are used to represent locations on a three dimensional sphere they are defined both in terms of latitude horizontal and longitude vertical degrees Geographic coordinates are calculated and recorded using a GPS receiver Projected coordinates are used to represent locations on a two dimensional flat surface such as a computer screen they are represented as discrete x and y values Coordinate Reference System CRS A set of rules for assigning coordinates to real world locations Because the Earth is a three dimensional oblong sphere geographic data must be stretched or compressed in order for 1 images to visualized on a flat surface and 2 spatial relationships to be measured e g distance area GPS receivers record coordinates by completing a set of calculations defined by the Coordinate Reference System CRS If the CRS is changed a different set of coordinates will be produced for the same location When using a GPS receiver to gather coordinates the specific CRS must be specified and recorded so that shapefiles can be accurately created from the coordinates The most common geographic coordinate system is the World Geodetic System 84 WGS84 Geographic Information System GIS A system used to capture manage analyze and display geographic inform
38. nzania with higher HIV prevalence will be shown as a darker shade whereas regions with lower HIV prevalence will be lighter shades 1 Open the properties window for the Tanzania_adm1 shapefile layer 2 Click the Style tab Figure 18 3 Inthe Style window select Graduated from the dropdown menu Version 2 0 160 Figure 18 Kal Layer Properties Tanzania_admi Style ine General Labels a Graduated Eee Fields Single Symbol Categorized Rendering Rule based 5 Display Point displacement 4 Click the Column arrow scroll to and select the indicator from your dataset you would like to show on your map TZ_THMIS_15 49ALL_HIVPrev Figure 19 QGIS automatically divides the entire range of regional HIV prevalence values into 5 intervals of equal size 1 5 4 34 4 34 7 18 7 18 10 02 10 02 12 86 12 86 15 70 Figure 19 Labels ee Fields Rendering cr Display RO Actions joins 1 5000 4 3400 1 5000 4 3400 4 3400 7 1800 4 3400 7 1800 gt pom 7 1800 10 0200 7 1800 10 0200 10 0200 12 86 10 0200 12 8600 12 8600 15 70 12 8600 15 7000 7 Metadata Restore Default Style oc j oa Note that the upper bound of each interval appears to be exactly the same as the lower bound of the next While not showing it QGIS considers the lower bound of each interval as belonging to the interval preceding it For example while it appears th
39. ocsdenacicrapddoensepactedsawadsecscveaPadeansdoanasoaatedeswauuecsdesataceaetdonns 12 1 2 5 No aia Ae E el T E A E E A bo oust E E A E E A A 14 1 3 Stylizing Formatting and Managing Map cccccccssseccccsscccceeseceeeeecceeeeseceseuecessueceesaneeeeeas 16 1 3 1 Creatine a Graduated MaPDisrecsriecricacirro ia AE a eee 16 1 3 2 Adine EAD CIS aa E nce sdtesisonenaceeoasaueeyesacscasesatuacssnasaceeasqoeeaseneceas 19 1 3 3 Adding additional SAV EIS seeren NANE 21 1 3 4 omone Ne WAV OS er N E 21 1 3 5 Zooming to and panning features ON a Map ssssesssseesssrrresrresssrrressrererrereserersserreserereseerese 23 1 4 Creating a shapefile from x y CoordinateS eesseseseensssressrrrssrreresrresssreressrrssrreresreresrreresreresene 26 1 4 1 Requirements for displaying coordinate point locations sessesesseesesseresrrrssrreresrrrsesrerese 26 1 4 2 Importing coordinate Cata eecccssscccssecccssecccsccccescecescecsececeeceeeneeeseucessunceseecesseeeneness 26 1 4 3 Specifying a Coordinate Reference System esssessseesessreesrrrsssrrresrrersrrrresrreesseeressrereseerese 28 1 4 4 Formatting POINt Laye S iE 30 1 5 Finalizing and exporting Maps xicssesccvecs nave scsingeesaesnasisensdecvach pes ssatisgiasaenveenoeseareeb E 32 1 5 1 Rules for constructing map layouts cccccceesseccceesececceeceeeeesececsesececeeneceeeeneeeessuecessgneess 32 1 5 2 Creating a map layout in Print COMPOSE sssssseseseess
40. only wish to display the geographic relationship of a subset of points For example when assessing PMTCT programs it may be desirable to only display the facilities that offer PMTCT services As shown in the facility layer attribute table displayed in Figure 69 the Facility level data we imported contains information on the services offered at each facility Therefore we can tell QGIS to only display the facilities that offer a specific service Before moving forward take note of how this data is structured PMTCT sites are delineated with the value PMTCT under the PMTCT column we will instruct QGIS to only display sites that have PMTCT listed in the PMTCT column Version 2 0 460 Figure 69 4 6574 5 3194 5 3697 4 4619 1 Inthe Layers panel verify the checkbox for the facility layer is enabled Facilities Tanzania 2 Open the Properties window for the same layer 3 Click the Style tab 4 Inthe dropdown menu select Rule based Figure 70 Figure 70 w Layer rendering Layer blending mode Normal v Feature blending mode Normal v Rule based z abet dace a 5 no filter Refine current rules 7 Count features Rendering order Load Style Save As Default Restore Default Style Save Style z OK Cancel Apply Help Version 2 0 a7 5 Click the green plus button This will open the Rule Properties window 6 Inthe Rule Properties window type PMTCT for Label Figure 71
41. orizontal Left Center Right 1 5 5 Drawing a border 1 Click the Select Move item tool AS in the Composer toolbar Version 2 0 Ea 2 Click the Tanzania map 3 Inthe Item properties tab scroll down and click the Frame checkbox 1 5 6 Adding and formatting a legend in the Composer toolbar 1 Click the Add new legend tool 2 Click a desired position for the legend on your map Figure 52 Figure 52 HIV Prevalence among 15 49 year old by region in Tanzania THMIS 2010 3 Under Legend items in the Item Properties tab click the item TZ_THMIS_15_ 49ALL Figure 53 Figure 53 Composition Item properties Atlas generation Item properties Legend 7 Main properties Title Legend Map None x Wrap text on Y Legend items Update item Update all a TZ_THMIS_15 49ALL Subgroup TZA_roads Hidden H Facilities Tanzania Hidden E Tanzania _adm i1 Subgroup Sawee 4 Click the delete item button to remove the text from the legend Version 2 0 37 5 Select Tanzania_adm1 and click the Rename button AY 6 Inthe Legend item properties window type HIV Prevalence in the item textbox 7 Click OK 8 Scroll down the Item properties tab until Fonts appears expand the menu if not already done Figure 54 Figure 54 Composition Item properties Atlas generation Item properties Xx Legend Feas ESAE Auto update vw Fonts 9 Increase the size of the legend by cli
42. perties window for Tanzania_adm1 layer 2 Click on the Labels tab Figure 22 3 Inthe Labels window click the checkbox to the left of Label this layer with to enable labeling Figure 22 4 Click the arrow in the dropdown menu to the right of Label this layer with and select which column in the attribute table to show as labels NAME_1 Figure 22 General Label this layer with NAME_1 y E Style Y Text Buffer sample otyle Lorem Ipsum Labels 5 To highlight or buffer the labels so they are more visible select the Buffer options within the Labels window Figure 23 6 Click the checkbox next to Draw text buffer Figure 23 Version 2 0 190 Figure 23 abe Text Text buffer fab Formatting 3 Draw text buffer g ab Buffer o Background size 1 0000 4 Shadow m4 mm 4 Placement Color buffer s fill Pen join style gm Bevel Lame E Elend mode Normal lt q Load Style Save As Default Restore Default Style Save Style i ee coe es C 7 Click OK Region labels outlined in white are now applied to the map Figure 24 Figure 24 Kagera q Mwanza 7 19 10 02 10 03 12 86 12 87 15 70 Shinyanga Kilimanjaro Kigora r i Tabora Tanga Singida aani Dar Es Salaam Pwani Morogoro e 4 Undi Mtwara Version 2 0 1 3 3 Adding additional layers Additional map layers can be added to a map for further analysis such as roa
43. srrresrreessrrrssrrrreserrrsreereserreserereserereseere 32 1 5 3 Adding a map tothe map ayoul recreare eTA 34 1 5 4 PUN VS a TAIE serr E 35 1 5 5 DWE a DOIE annan ooeseeeesainsaeeause eaverneoteaaeeeeas 36 1 5 6 Adding and formatting a legend ssosssssssensssrrnssrrerssrrrsssreresrrressreresrrerssreresrrresseereserereseerese 37 Version 2 0 on 1 5 7 Indicating scale and direction IN a map layout cece ceeccceeececeeececenseeeeeeeceeecseeueceeeneeeeenses 38 1 5 8 Exporung map VAY ON cages eee becasue cn cases see EA Ta 39 1 5 9 SWE 22 Om hc nee E E oe ee ee eee 40 1 5 10 Opening a Project TINS eraceeee ron saute veneer saceascide ceva siacoseganabeeatneesevncniceeorencesactecsubanvecaessencaediaeseeeort 40 1 6 Advanced Mapping Techniques in QGIS cccccccesscccccsseccccessecceeeseceeseececseesccessusecesseneceesueeeeetes 41 1 6 1 PAGE AS AY OU oS 41 1 6 2 Adding Secondary label eter vas snc sce ery a ecessein aoe eo eee es 43 1 6 1 EGICINE Anribute Dal aese E S 45 1 6 2 R le based Styles Tor POMNI cerere 46 Version 2 0 3 How to Use This Module This module offers a systematic approach to mapping using QGIS mapping software with the HIV testing and counseling HTC Data Use Tool and is meant to accompany the HTC Data Use Tool User s Manual Although this guide uses only HTC examples the Tool and examples can be adapted to different data use questions related to HIV prevention treatment

Download Pdf Manuals

image

Related Search

Related Contents

Fenix HL22 flashlight  TDS200, TDS1000, TDS2000, and TPS2000 Series Digital  BSS Audio 9012 User's Manual  Nokia 6670 Quick Start Guide  Unicol AP8  CW25 GPS Receiver User Manual    UU AG System User Manual  Buhl Data Service 9783866213470 financial analysis software    

Copyright © All rights reserved.
Failed to retrieve file