Introduction to GIS Mapping
Transcript
It will be the introduction to geographic information systems, otherwise known as GIS, and then I'll pass over to Mads for more statistical analysis. My talk is going to be a brief look at what exactly is GIS and then to talk you through the different levels of building a GIS map so we will look briefly at layers adding data - vector data and raster data.
I’m going to use a site which we are studying in the ResPHARM Project in India as my example for building this GIS map and the visuals will all be looking at a package called ArcMap and then finally, time allowing, I will present some data on the Thames catchment, so that's a river in the UK, which has already been completed and that's also looking at antibiotics in the riverine environment using mapping. So, what is geographic information systems - GIS?
It's a very powerful system which does multiple things, but essentially allows you to connect georeference data with a map. It allows visualization of spatial data, but more than that, it allows you then to go on to look at patterns and relationships between those data in a spatial context. And also you can look at it over time as well, so look at either trends or different distinct time points. So, it allows you to understand the geographic context of your data.
And then, once you've done all your analysis, the other thing it's very good at, is improving the communication of those results through very polished maps which are specific to your purposes so it's very powerful and many different aspects to it. So another way of thinking about what geographic information systems do so it's centred around your digital data and always needs a georeference; typically X, Y coordinates but can also have Z;
X, Y would maybe be your latitude longitude. There are a variety of different coordinate systems which can be used. So it allows you to capture data, create data, display data, analyse data, manage your data because within your GIS system, behind your maps are geodatabases and so your data can be linked in the same way as in any database, you can link tables so when you're doing sampling and you're doing multiple different analyses, you would have one table, for instance, with your sampling data and then multiple tables with your analytical data, which would then be linked, and you can access all of that through your mapping suite, you can store data and check data and your typical outcomes, your maps and your statistics as well.
So there are actually quite a large number of software packages, some of them are quite general and some of them are really quite specific. Two of the main ones that are used: ArcGIS and that's a comprehensive package is a software suite. And you can access that either online or a desktop version, which is the one which I use. The downsides to using ArcGIS, which is a very comprehensive and user friendly package is that it needs a license. University of Warwick has a license for the desktop version which is why I use it. The desktop version has limitations, it is Windows only so it won't operate on the native operating system of a macOS,
so I currently run it on a virtual machine but that's not actually going to be possible for long, so there are some limitations. There are other alternatives as well, and one of the main ones is an open source software and free, called QGIS - that's quantum GIS and I think it's quite a similar package with a very simple functionality and that operates on Windows, macOS, Linux and Android, so there are advantages to that as well. I’m going to be showing images using the ArcGIS, but you can achieve similar results with other packages as well.
So the ArcGIS desktop is a suite of software and the packages are all integrated together, there are a number of different elements, but the key elements that, the ones that I use, particularly the ArcMap where you're drawing your maps and adding new layers and adding new data and looking at the statistics but behind that the ArcCatalog stores your geodatabases and that's where you would do your linkages and uploading your data and making sure that the references are included, etc.
So on ArcMap your maps are drawn in sequential layers using the data that you have stored in your ArcCatalog. And that's the next step that I’m going to just go through in brief. So, to introduce the area that I’m going to use to demonstrate the map drawing it's a town called Baddi which is an industrial town in the most northern area of India Himachal Pradesh and it's in the district of Solan within there. So, just zoom in on Himachal Pradesh and you can see Baddi here and the area we're going to be looking at in particular in these maps is the one in red.
So the first thing that I'd like to show you is that the maps are built up in layers and the layers that you can visualize on your map are shown on the left hand side of the ArcMap, I should say, these are all screenshots from our map I’ve deliberately not shown you the polished reports that you might have at the end, because actually I think it's more useful to show you screenshots of the process. So there, I actually have a number of layers here but I'll briefly say how you can add extra layers the only one that's visible at the minute is here is the one with the tick here that's how you decide which layers are visible and I currently have a base map as well: a topographic map which you can download from online. So you can see on here, your typical features of rivers, district boundaries, this is the town of Baddi here.
You can see also such things as this is a forested area, etc. And then, if you do want to add data, then there are a number of different ways of doing this, so one is this plus button up here, which has a drop down menu, and you can add data, either your own data, which if it has an X, Y coordinate through there, and you can also add from online so that is actually through GIS and I understand through QGIS as well, there is a huge online repository of data and, as with anything you get online, you do have to quality check it, a lot of it's open source, which is a fantastic resource, but you might need to
quality check and tweak it appropriately but it's a good starting point. And the other place for looking at data is the ArcCatalog on the right of my screen here, so you can access it either through the right of here, and you have a sort of a column at the right way, it looks very much like your find window. Or you can open, if you want to do more detailed manipulations of your geodatabase, you might want to open the ArcCatalog program itself.
So, I’m going to talk through adding a few different sorts of data type. This, the main two types of data type are either vector which is your coordinate-based data types so that's typically X, Y but you might have an altitude as Z factor as well and, as I mentioned earlier, there are different coordinate systems. And you have to make sure that your data is linked with the appropriate coordinate system, for instance, if it's latitude longitude you would link it up as that. And within vector data, you have three main types, you have your point so your individual X, Y data, you have your line, sometimes in GIS called a polyline, which is a sequence of individual points which are linked together and then you have your Polygon which is effectively a polyline where your beginning
and end vector coordinates are the same, so you make a shape. In ArcGIS and I think QGIS as well, there are the files that contain these data are all called shape files. The second sort of data type which I’m not going to go into much detail, but you need to be aware of, is Raster data, and this is a matrix of cells or pixels, if you like, across your geographical space arranged in columns and rows and each of those small areas decide which can vary depending on your Raster reflects quality, so it could be, for instance, the digital elevation model which we talked about in the first talk on Monday, is an example of a raster and so you might have different
heights which on your map are represented in different colours, for instance. Other examples are things such as weather data so rainfall might be represented as a raster, land views can be reflected as polygons. So, moving on to actually showing you adding some layers. First I’m going to look at a couple of examples of points, you can see over here another layer has been ticked. And I just want to begin with, to show you, and this is of relevance to AMR one of the things that we're looking at in the ResPHARM project is the impact of the common effluent treatment plant in Baddi on the river we'd be looking upstream and downstream of that and so that treatment plant has been plotted here.
And you can label your points, you can also change your symbols and all of these things are accessed through right clicking on the name of your layer in your layers sheet or for the symbols, you can equally Double Click on your symbols themselves, the dot, for instance. Other point features that might be relevant to the analysis of AMR in the environment, for instance, the presence of hospitals and just to point out that the data for the CETP Baddi validate itself. And I’m not showing you that
we have also in a quite deep, in quite a detailed manner, mapped Baddi and the variety of different industrial places, etc. The OSM stands for open source mapping and is a resource I’ve downloaded online and I’ve just highlighted the hospitals, you can also see such things as pharmacies, etc as well. You can change your symbols as appropriate for what you're looking for. Within each of these layers there's the data table called the attribute table which you can again access through right or double clicking on the name, and this was the sort of thing that would pop up.
You have your shape code, the feature class so you can see here that within the data set there's hospitals, pharmacies, chemists, etc. and more details regarding names and districts that things are in. Moving on to the second type of vector your line or polyline and an example which is relevant to studying of AMR is your rivers and your streams and again this is downloaded from open source mapping. They are not exact so you do need to adjust them yourself, for your own maps to make sure that they're accurate but they are a good starting point.
And for polygons, a couple of examples of polygons or, for instance, land usage so here in green is a polygon with the forest, industrial units are in this beige-yellow. Another example of a polygon is the districts or states of the state Himachal Pradesh and there's also the district of Solan shown as well with another layer. And the more observant of you might notice that actually, all of my other layers only show data within the district of Himachal Pradesh and that's
because my computer is super old and didn't like running multiple layers of data from across India, so one of the things that you can do with your data is clip it to one layer to the elements within another layer so I clipped all of my data to be within Himachal Pradesh and then actually if I’m honest I regretted it slightly later, but that aside, I think it demonstrates it quite well. So, for the raster data, I haven't actually plotted any myself but I’ve pulled out from the literature, which is referenced for you, is a digital elevation model of India with
the different colours representing the elevation and you can use this on a smaller scale and it's particularly useful for defining such things as water basins for water catchment areas. So that's the whistle stop tour of how to add data to a map and if you're interested in doing this, I could recommend some of the tutorials they have. There is one on Rondônia in the Amazon rainforest which walks you through all of these steps, including going on further to do some geostatistics on the data and then produce some images which will be suitable for publications, etc, and I think it's really worth if you are starting out going through a few of these tutorials to really get to grips with it.
It’s quite a lot of different elements to use in the GIS and for the last few minutes, I want to talk about some examples of analysis, which have been done using GEO statistics in the geographic information systems and that's coming back to the UK again looking at antibiotics and the fate in the environment and that's in the Thames catchment and if you're interested further in this data it's been published on bioRxiv I’ve been involved in this project, but it was James Delaney at Warwick and Holly Tipper at CEH Oxford UK who did the mapping and analysis.
So, these are maps from the Thames catchment. And the sampling sites, so first of all, looking at the map over here, so this is the UK and the Thames catchment is shown in green, which is enlarged here and you can see the river system and here on the map, you have your lines which are the rivers, the polylines and they've been coloured in differently, for the different tributaries of the Thames. Just to point out you've also got your Polygon, showing your drainage basin and you've also got the sites of sampling in green dots and red dots and the difference between the green dots and the red dots are that the type of analyses that were done on them. So, it's the green dots that I’m going to be going on to look at. They had the more detailed analysis, including the metagenome analysis
and then on the right hand side of the screen we also looked at antibiotic levels, in all of these sites. I’m just picking out a couple of them here and trimethoprim and sulphonamide showed significantly different levels, both between sites and between the seasons of sampling as well with trimethoprim being particularly high in a number of sites such as Ray4 and Ray6, almost always been higher in the winter as well. The weather in the UK is quite different from that in India, so we're observing quite different patterns in India, where you have the monsoon season and the dry season. In the UK, we always have rain. But in the winter, we have more rain.
And that impacts considerably on the riverine system, in particular, because the wastewater treatment plants can't cope with all the capacity of rain and effluent is released which is untreated, which does affect what's happening in the river, and that is more likely, it not only happens, but it's more likely to happen in the winter. Other things you can analyse - all the land use. Here again you've got your tributary mapping the Thames catchment area, and these are the boxes which are amplified out, if you like, and you can see that the land use, with the key here, changes so up here, for instance, it's largely improved grassland in pink. Ray2 it's very suburban and urban with the suburban in blue and urban in green, whereas Lambourn3, for instance, has a lot of arable and horticulture,
as well as some grassland. Key3 is quite mixed with improved grassland and suburban and urban. You can also do distance correlations so wastewater treatment plants are of particular relevance, but also things such as fish farms, other farms where you might be having run off into the rivers are also of relevance and you can do geostatistics using your geo-mapping. Here we looked at the trimethoprim concentration at each site versus the distance from wastewater treatment plants. So these values will have been transformed, it's
non parametric so Spearman’s rank correlation has been performed and there's a negative correlation you can see here which is significant with distance from wastewater treatment plant and, if you look in a little bit more detail it's not just distance from wastewater treatment plant, but it's also the type of wastewater treatment plant, so the tertiary wastewater treatment plants were closer to the sites with the highest levels of trimethoprim, whereas those which had lower levels had secondary wastewater treatment plants. Coming back to the land use correlation and focusing on the four sites with the highest trimethoprim levels versus the sites with the lowest trimethoprim levels. They showed quite different uses in the land use and the
most striking one is the increase in the urban and suburban in the blue in the sites with high trimethoprim levels. In the low ones, there was considerably more arable, the pasture stayed reasonably constant, as did the woodland. It shows that the urbanization is correlating with the high trimethoprim levels and the urbanization is also correlated with the tertiary wastewater treatment plants and I’m not showing this data, but also the higher population equivalence as well.
To conclude, GIS systems offer a very powerful and flexible and very visual way of exploring GEO reference data and hopefully provided a flavour of the different steps needed to create a mapping GIS software. What I haven't really looked at due to time constraints are ways to present the finished maps in a polished manner, but that's also another really important aspect of the package for producing publication quality or presentation quality images
and then used some data that's been analysed using such methods to show you the sorts of analysis that can be performed in this particular field of antibiotic fate in the environment, though I’m always aware it's always the tip of the iceberg, and everybody has different interests, and there are many different ways to use these packages and I’m really looking forward to hearing the second part of this talk, which looks in more detail, at spatial interpolation. So that remains just a couple of thanks, so Liz Wellington and the group Chiara Borsetto and the ResPHARM project and then it's important to thank James Delaney and Holly Tipper and all the other contributors to the Thames project as well, and also to all of you for your attention.

Ask anything
We've read this whole study set, so questions about it get the best answers.