An Introductory QGIS Workshop for Beginners

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

Thanks!

👍︎︎ 3 👤︎︎ u/Jospehhh 📅︎︎ Jul 17 2020 🗫︎ replies

While I appreciate that they did this free training, it lasted for 3.5 hours and they go over 1 hours worth of material. So be prepared to skip a lot and set YouTube to 1.5 speed.

👍︎︎ 2 👤︎︎ u/XiozTzu 📅︎︎ Jul 18 2020 🗫︎ replies
Captions
this for real so right now I am seeing that it is prepping okay so we are good to go I can see that we are currently live streaming on YouTube so I'm gonna go ahead and minimize that so well I'm getting prepped for those of you joining us via zoom welcome also to those of you joining us via YouTube welcome just FYI the YouTube stream is about on a 20-second delay so just be aware of that if the timing seems weird with what I'm saying and you're typing in for example in the chat box and it seems like I am moving on without you that's why we're gonna try to minimize that but 20 second delay is pretty substantial for people doing instructions so just we'll do our best today and I'm really glad you guys are here especially for those of you in western time zones this is pretty early for those of us on the teaching team today in California it's about 7:00 a.m. and I usually don't start my workday for the course so for those of you west of us thank you so much for coming um I am going to go ahead and start sharing my screen so we can get started and bear with me a second while I do that and then I'll check and make sure that it's working on the YouTube channel screen onto that screen share I know this doesn't make for good YouTube television talking to myself about screen sharing but this is how we're gonna get it done this morning oh goodness what are you doing sorry it's picked the wrong so we're just gonna go with this cuz I believe this will work let me just check and make sure that YouTube is doing its thing okay okay see that one is getting started okay sorry I'm not sure you guys can hear because I've got the headset mic my cat is running back and forth across the house right now good timing kitty okay we're gonna go ahead and get started I'm sorry I'm gonna leave the the slides this way because my computer is being unfortunate but this will do I believe all right so welcome to welcome to intro to QGIS for QGIS in North America 2020 this is the first session of the conference we are running concurrently right now with another intro to QGIS session in Spanish if you're looking for that one I recommend that you go to the conference website and there's a link for live streaming for that session on the website sorry I'm a little bit of audio sure right now um okay so I recommend again if you if you were looking for the Spanish language one go ahead and find the live stream link on our conference website um I would say that in Spanish but I'm teaching the English one for a reason because I don't speak Spanish very well so alright so moving on again welcome this is QGIS North America 2020 and the intro to QGIS workshop in English today everything that you're seeing this Friday and then for the next two Friday's for the QGIS North America conference is free we decided not to have any registration fees because everything that we're doing today is on volunteer time we have no corporate sponsors for this conference we have in fact no sponsors at all except for our works that are allowing us to do this on work time good for those of us who are organizing come so we think our employers for that if you are able we are suggesting that you make a donation to support and the maintenance and development of QGIS you can do that I realize that the link that's showing on the screen isn't clickable with the video the easiest way to get to the donation page is just to go to QGIS org and then click the support QGIS button that's kind of in the middle of the homepage there so if you're able to make a donation that's what we'd like to suggest in lieu of having registration fees but if that's not an option right now I know a lot of people have type finances with the pandemic going on that's totally cool we're happy to have you here regardless so hello welcome again my name is Michelle Tobias I am the geospatial data specialist at the University of California Davis data lab we are data science shop where we help folks with research and the whole data pipeline specifically with with data science and data processing and research workflows today I have three helpers out in cyberspace in various places so here in zoom we've got Leah Nagel who is I University of california-davis Center for watershed watershed Sciences staff I just realized I misspelled that apologies and Jason Whitney who is a graduate student and the UC Davis geography graduate group where I'm an alum from so super happy to have Jason here helping to and then Curt manky is going to be helping us with the chat that's going on on YouTube so I'm happy to have him here as well he's also very experienced with QG is probably the most out of all of us so hey Curt if you're out there watching so that's our team today you'll see them helping in the chat so when you have questions you're going to post questions in the chat so that we don't have you know a bunch of people contributing audio that could be challenging for instructions so we're gonna have you go ahead and use the chat for that and I'll explain in a minute how that's gonna work I'm save you see Leah and Jason and Curt responding um those are our official helpers but feel free to help each other this is an open-source tools open-source conference we like to help each other alright so for today's workshop a little bit about what we're going to be doing this is an introductory GIS workshop it's going to be largely a demonstration I'm going to show you a bunch of things you can feel free to follow along if you would like I've provided the workshop data for you to use to follow along um I would say one thing to be aware of is that if you have multiple screens following along will be easier if you are working on one for example one small laptop screen your better bet today might be to just watch and then try what we're doing later the workshop materials will be online forever as far as I'm concerned I usually update them when we get new versions of the software but you'll have access to that after the workshop as well so if you need to just sit back and watch and not follow along that's okay normally we do workshops in person and I would rather do them that way but obviously where we have to do this remote so pace yourself if at some point you get overwhelmed and you're following along you just want to watch that's fine to just take care of yourself today it's gonna be a long haul we've got a four-hour workshop I also want to mention this is not a feature tour I got a couple of emails asking about that and making the assumption that I would be doing just a feature tour and that's not what today's workshop is and this is an introductory workshop and I'm going to assume for some portion of this that you don't have GIS experience so that's just for the first part of this so sit tight if you are already a GIS pro and you're just looking for some QGIS experience but anyway that's that's the plan for today so let's go ahead and sorry click the wrong button and pardon me get back to screen sharing it's trying to open the chat if you've ever presented with zoom you you know that as soon as you start screen sharing it rearranges all of your windows for you okay so today for our zoom participants I'm going to walk you through some of the tools that we like to use while I'm doing workshops via zoom for those of you in youtube I will give you some suggestions for how you can participate as well with the options that you have on YouTube so if you are on Zoom if you go down to the bottom of your screen you'll see an icon for the chat if you haven't opened up the chat go ahead and click on that and open up the chat window and what I'd like to have you do is practice using it so you're going to go ahead and post your name your location your job some kind of introduction you can be as specific or vague as you like this the reason that I'm having you do this is partially so you can get some experience with the chat window because that's where we're going to be posting questions when you have questions or if you're stuck on something but also this helps me justify to my my team in my office that we had certain number of participants and look at all the cool places they came from and look at the reach so if you didn't do that in some form that would be super helpful for me for those of you on youtube if you'd like there's a chat feature there as well and feel free to introduce yourselves to your fellow participants over there so that you get some experience using that chat window so that when you have questions you can ask there I'll give you just a second to do that I also have to say it's super cool to be able to share with you guys from all over the world today I know it's unfortunate that we can't come to one place to do a conference together in person but it's really nice that we're able to do live streams instead and and still get some time to help each other out and and do some group learning so I'm still seeing the chat going but that's great um we're gonna take a look at some other tools that we're gonna use as well in zoom today so the other thing that can be really helpful for me as an instructor is to be able to pull you guys so if you open up if you go back down to the bottom of your zoom screen you'll see that there is a button that I believe it's called participants can't check that because it took away my menu that looks like your menu while I'm screen sharing but if you click on participant participants you'll see that there is a a poll of sorts there is a green yes button and a red no button and so what I'm gonna have you do is answer a question for me so how many of you are new to GIS so if the answer is yes go ahead and hit green if it is no go ahead and hit the red button so we can see the answer to that poll so again the question you're answering in the participants window is are you new to GIS so if the answer is yes go ahead and click the green button and if it's no hit the right button it looks like most of you have found that so that's great I appreciate you doing this throughout the workshop I'm gonna check pacing on some things using using that feature it's just a good way to to find out you know how people are feeling about stuff whether we need to move on or not okay so um great so Before we jump in and be helpful if you guys knew where the workshop materials are if you're registered for the workshop you got an email that had this linked in it in some some way shape or form if not I'm gonna leave this up for a second so you can copy the URL I know what the video streaming this isn't linkable but I can post it in the chat window for zoom and hopefully someone can go ahead and paste that for the folks in the YouTube stream there we go spirit with me a second while I paste the link unless you the chat window so go ahead Leah oh I just said I'd already done it but by the time I found the unmute button you'd already done it nevermind okay no worries it's early morning for our team we will so Leah and Jason will be popping in again on audio to let me know they're they're our helpers for the day for those of you who are just joining us the rest of you should please stay muted and leave your video off for now just so that we can conserve bandwidth from my home home office which is in my living room thanks to working from home so bear with us on that okay so I'm gonna ask you guys in the zoom session if you found the workshop materials so if the answer is yes go ahead and there we go so go ahead and click the yes button if you found the workshop materials if you need another you know 30 seconds or so to find that go ahead and click know and I'll pause for that okay it looks like most of you so far have found the workshop materials that want it if you're just watching and you don't care about it go ahead and click the yes button so I know not to wait for you all right so I'm gonna switch up some screens here as you guys finished getting your workshop materials so this is what the page should look like when you find those workshop materials and this is a github repository and don't worry if that is something that's new to you we're just using it for the display capabilities for it makes a nice website for the workshop materials so don't stress we're not really gonna be using github today aside from looking at it okay so I think it looks like most folks have found the materials that want them so let's let's dive in here let's see so today's workshop is going to be with QGIS I'm gonna be demonstrating on QGIS 3.14 if you have an a slightly older version like 312 that will be perfectly fine there was when I updated this last week it there were very few changes so so there's a couple minor things that have changed like labels on stuff but you'll be able to follow along just fine and probably even if you have like 310 it should be good if you're working on - still it's gonna be way different so just sit back and watch and and do it with an updated version later so the workshop aims you probably saw on the on the conference website but today the plan is we are going to cover some basics for GIS I'm realizing this might be small for some of you so I'm going to go ahead and make this font a little bit bigger so we're gonna be covering some of the basics we are going to learn about different data types and we are going to load up data into our GIS we are going to style it and then we're going to learn about the attribute table for vector data and do some basic querying and then we are also going to assemble a map and finally we're gonna do a little bit of spatial analysis of there's time so we've got a lot on on the schedule today we will be taking some breaks throughout this for our workshop period and that's a really long time to sit so probably about every hour we'll take a five or ten minute break so you can stretch or get some some snacks or whatever it is you need to take care of yourself okay okay so what is what is GIS again I'm assuming you guys don't have a ton of experience with GIS in general but if you do just sit back for the next five minutes and this will be easy-peasy okay so GIS stands for geographic information systems or geographic information science depending on how you're using it so when we use the geographic information system term we're talking about the basically like the software and the tools that we're using to investigate spatial relationships between data when we're talking about geographic information science we're talking about the framework that we're using to answer questions about spatial relationships it's a good idea to know that these are two different options for when we say GIS but mostly people won't distinguish between them so um I just like to bring it up so that if you ever do hear it you're like okay I heard that in my intro so today we're really gonna be working with the system side of this because we're working with the tools but when we do the spatial analysis especially we're gonna be switching over to the science side it'll be seamless you'll never notice the difference okay so we're also this is a QGIS workshop so what is QGIS just in case you were unfamiliar with it and when you signed up for this QGIS is a desktop GIS that means that we are going to be working with a graphical user interface you'll have windows and buttons to click in forms to fill out when when we need to do stuff which is different than a programming interface for example so things will be visual here QGIS is open source which means you can you have access to the code to read or modify it if you want to you don't have to but you can if you you want to the big - this is that if something is if there's a bug if something isn't working right anyone can fix it and anyone can add new features which is different than proprietary software where you don't have access to all the code that may not matter to you if you're just starting out but later down the road that might might be something that you're interested in doing QGIS is also an official project of the open source geospatial foundation so OS geo is a is an organization that helps support open source geospatial technologies and they provide infrastructure and organization to the broader community and to help do public education about what what open source geospatial software is they also put on a conference in theory every year we obviously not this year and then regional conferences if you've heard of foss4g the free and open source for geospatial and that osteo open source geospatial foundation is the group that puts those on often you don't hear about the foundation you just hear about the conferences so just want to put a plug in for that they do great work helping these kinds of projects get going and be maintained so okay so we've talked about what is GIS we've talked about what is QGIS but why why do QGIS why not use some other tool visit I'm gonna give you a couple a list of reasons that I think are important to me personally there are other reasons out there for me QGIS is a robust powerful desktop GIS sometimes especially working in the university community doing consultations and working with researchers I hear still unfortunately the rumor is still out there that anything that's open sources for some reason less than it's not as good and that is not the case with QGIS it's really powerful it does everything that I expect a desktop GIS to do so so it's great I like it I've been working with it for a really long time actually did all my dissertation work with QGIS and that was a while back and it's it's got light-years better since since that point in time one of the other advantages I see to this particular software is that it runs on Mac Linux and windows so we don't have to worry about people having a specific operating system it runs on pretty much everything natively which is nice and you don't have to worry about license issues dealing with license managers and stuff like that it's not an issue with QGIS so for those of you who just want to do your work and not deal with that that's helpful another big thing has said it's free of charge so you don't have to worry about paying for it it's there it's all access you don't have to pay for four other bits and pieces to make make your job work it's free and there's also really frequent updates and bug fixes and there's a really responsive and enthusiastic community I mentioned these together because I had a situation where I head up a project at the UC Davis library that is digitized in the American Buddha cultural areas and we rely on Geo Jason for our file type and at one point there was an update to QGIS that changed how they handled geo Jason and it broke our project so I was able to get on the bug tracker and say hey developers so this happened this isn't working for us now here's here's why we want you to fix it and make it the way that it used to be and it was a situation they hadn't considered and realized that they could fix that and they did fix it and in a couple days we're back up and running so that's really cool that we have that community and that's partially facilitated by the fact that this is open-source you can also integrate this with other geospatial tools and programming languages like our Python and post chess so if you are interested in doing things like that is totally possible to connect all this stuff up you also have access to tools like like other software's like grass and saga and Orfeo and all kinds of other things can connect to QGIS you can use it all in one spot and that that's really helpful because I'm not sure if those of you out there have tried using grass before on its own I'm having it connected to QGIS makes it a lot easier to use crap algorithm so that's another great reason to use QGIS specifically you also have native access to formats like geo Jason and geo package that are open formats you don't have to do any add-ons or special tools they just work which is nice the Geo JSON format but QGIS uses is also the official Geo JSON format unlike some of the proprietary software that's tried to write its own version of that another thing that I've come across is that QGIS is translated into more than 40 languages so if for example in the university environment sometimes we're working with folks in different countries or people who their first language isn't English having the interface for QGIS that's able to be translated so that it's in your native language can be really helpful so I I just think that's cool that that's available the other thing is that QGIS is growing in use by local state federal and international governments so it's a good idea to at least know a little bit about QGIS even if you typically use other software's or other tools you may find that this is on the list of things that you might need for future jobs so hopefully we'll get you a good intro to this today so that you can check that off your list and put it on your resume Before we jump into conceptual information I'm going to pause and ask if there are any questions that I can answer not seeing anything pop up in the group chat okay so let's go ahead then and jump on it into our materials concepts first and then in a you know probably five minutes or so will will actually open the interface so if you're dying to open the interface we're gonna get there soon all right so um you need to understand a couple things about data before we can jump in because this is important so there are two main types of spatial data that you'll see when you're working with a graphical is there are many many other data formats out there these are just the two most common we could do an entire workshop on just data format so we're not gonna do that today we're just gonna stick with two so the two types of data that you typically see when working with the GIS are vector data and raster data and then two kind of situations we're concerned about and that's discrete data and then continuous data so they kind of have their pluses and minuses you know they're intended to do slightly different things and you'll see that today when we're working with both these formats so vector data is a lot better at visualizing and working with discrete objects so when you think about like if I asked you get out a sheet of paper and you know draw a map from your work to your house as you're drawing that map let's say you're inviting a colleague over for dinner and they need to know how to get your house and you don't want to use you know now we get out our phones and show people in Google Maps or and they can do it themselves but let's say you're drawing this out you're probably gonna draw vector data here in draw lines for roads you're gonna draw a point for your house maybe make it a star because that's the goal you might represent for example the the shopping center buy your house as a polygon so some kind of shape that's filled in so that's vector data it's really good at representing objects if we can also use vector data to represent continuous data but we kind of have to make it discrete so in the picture you see we've got contour lines so we have a continuous field let's say it's elevation elevations could be any number right it could be one could be one point one it could be one point one two it could be any number but when we're representing that as vector data we have to kind of make it discrete so we do things like make towboat lines so if you looked at a topo map that's a vector way to represent continuous data on the other hand we have raster data raster data is gridded data so you this one I think sometimes is a little bit harder to grasp because it's not how our brains intuitively think about things but every single one of you even if you've never worked with raster data before as raster data have done this when you open up your phone and you take a picture when you took that picture you created raster data that's grated data and if you zoom in really really far into that picture you start seeing pixels right little squares of color that's raster data each of those squares contains information about what should go in that particular square so with the picture for example that Square has information about what color to make the square if we had a raster that was for example our elevation that grid would have information about how high that cell should be so what's the elevation within that square so that was raster is really good at representing continuous data because we have continuous coverage and we've kind of broken it up into little squares but if we make this square is fine enough it's really good for continuous data you can also represent discrete data like your points lines and polygons with raster but as you can see with the image we kind of have to chunk it up this kind of looks like if you're familiar with cross stitch patterns I if you've ever made a cross stitch pattern you've actually gone from sort of vector type data to raster type data to make that happen so you can fill in the squares so if that's something that that's all I'm gonna say about raster versus vector data right now as we jump into this as we start loading data you'll start to see some more of the sort of pluses and minuses the advantages and disadvantages of both these types but feel free also to ask questions in the chat as we go there's some text there too for if you're gonna do this later and you want to remind yourself are there any questions right now before we move on about raster and vector data also remind you we're going to load all this up and in so you'll see some examples of it all right I'm not seeing anything in the chat window in zoom so I'm gonna go ahead and move on so I'm gonna keep working from this this set of instructions but I'm gonna move it off onto my other screen you guys can follow along too but I'm gonna put QGIS on the sharing screen so you can see that in a second I'm I'll quickly introduce the data and then we'll switch over okay so today we're gonna be working with some data from the city of San Francisco this is from they they have this great open data portal so if you need example data to work with and you don't mind it coming from San Francisco versus you know something else you just want data to work with it's a great portal it's got tons of data in there so this this data comes from that city of San Francisco open data portal we're gonna be working with a digital elevation model which is raster data so these are grid cells that have elevation in them and then for vector data we're gonna be working with Street lines the trees are point data and that's actually a CSV then we have seismic hazard zones so that refers to places with high likelihood of damage and earthquakes important here on on the west coast of North America we unfortunately have earthquakes to deal with and then also the city of San Francisco boundary which I believe is labeled as a shoreline in in the data set it's mostly shoreline except that southern boundary city of San Francisco's not an island as the data that might suggest her and all of this can be found on this box folder online I will say if you haven't already downloaded the data and you don't have great bandwidth I wouldn't recommend downloading that now I'd sit tight and just watch and then you can download and play with that data later also I'll tell you when you click on this link it's going to open up a window and at the top it'll have like this green bar that pops up that says don't you want to join box don't you want to sign in just dismiss that and then once you clear that message then up at the top right-hand corner there's a download button where you can download all the data at once so you don't have to click on each piece of the shape files that are in there that will take you a really long time to do so go ahead and click on that download button and get everything at once it'll download is that all right so I'm going to now switch some screens around so I'm going to take away the text part and again you guys can keep following along on that I'm also going to remember to stop my video if I can figure out how to do that stop video because that is gonna get in the way of you seeing things if it's still staying up in the corner okay so right now you'll just see my desktop which is nice and swirly right now but so first thing we're gonna do is we're gonna start QGIS so you're gonna start up QGIS and whatever way you normally do I just recently updated so mine is here on the menu but if you're on Windows you can search I believe with Mac you can search and just open up your QGIS as you normally would all right so if you've ever worked with QGIS before you may see that you've got some projects here you can see kind of some stuff I've been working on for work if you've just downloaded QGIS and you've never started a project you don't have this it's blank so don't worry about that um what matters is we're gonna start a new project and I can do that in a couple of ways I can click on this new project icon it looks like a little white page with the corner turned down or I can go up here to project and click on new so project menu click on new and then your sorry I'm gonna close this so that everyone's will probably look more similar to mine so now we have QGIS open and we started a new document a quick little tour of what you're looking at we have menus up here at the top your we'll probably look similar to mine don't sweat it if your interface is slightly different than mine I've got stuff in here from having worked with this for a little while on this computer also we have up here some toolbars various tools that we can click on the nice thing is you're like oh my goodness there's so many tools if I hover over it any of these icons it'll tell me what it is give me a little tooltip so I often forget what things are and so I use all feature all the time when we add data into our project in a second you'll see data shows up in this big what's now white space but eventually that will look more and more like a map and then our layers that we add will be listed here in the layers panel you can think of it as like a table of contents for what is showing up in this main map canvas okay so we've opened QGIS step one is done we're gonna now add some data we're gonna start with a raster data so I'm going to click on this what is now called the data source manager and this little pop up a name on it changed so if you are working with 3.12 in my or 3.10 it might say something slightly different and your your button may have showed up in a different spot on your roof toolbar they're movable so they can kind of be anywhere so you can either click on the icon here it looks like three cards splayed out or I believe we can add it with there we go if we go to the layer menu we can click on datasource manager here and the layer menu it's gonna click on that and now we have this interface if you're familiar with other software's this method of adding data looks a little different than what you're used to but we'll walk through three different options so you'll have a good idea of how to deal with this by the time we're done today so we're gonna be loading raster data first you'll notice that in this interface there is a bunch of different options here on the left-hand side we're gonna work with raster data so I'm gonna click on raster here it looks the little icon looks like a checkerboard so this is how we load raster data we have to tell it specifically what type of data that we wanted to use this is why in the intro I tell you about raster versus vector data because you kind of have to know what kind of data you're working with in order to load it so we are going to click on now if we had the path for some reason we could just put it in to the box but if I click on this dot dot dot button it lets me browse my filesystem to find the data that I want so I am going to it remembered from me walking through this the other day that I want my data in my D Drive so I'm gonna click on my intro to desktop GIS with QGIS folder I should mention if you download it as if you do need to unzip that file so that you can get to the data so you'll notice it's right back up I've got the zip that I downloaded from the box account and then I unzip it so I have my data in an unzip folder alright and so I want to load this DM underscore SF dot TIFF file so I'm gonna click on that and then we it does have an auxilary file here this XML file that goes with it we just need to point to the main file and then the QGIS will know to look for anything else that has a similar name to put it all together so later on when we see shapefile as you'll just pick one of them you don't have to pick all of it again so I'm picking my DM underscore SF got TIFF and now I'm clicking at the Open button here in the interface to open it and now you'll see it put the path of the file here so I'm gonna go ahead and click Add I'm just gonna move this out of the way so you can see the result so this is a digital elevation model of the city of San Francisco it doesn't really look like San Francisco yet so we're going to work with that in a minute and make that look a little bit a little bit more familiar a little bit more like land than just clouds and a black sky so your should look pretty similar to that let's see so that is how to load raster data um next up we're gonna load some vector data I'm looking at the chat to see if there's any questions and I'm not seeing any I see somebody saying that they're being asked to transform the CEM go ahead and pick the default option that it's it's giving you if you're being asked to select your transformation and hopefully that will will open it up for you let the helpers help with that for now if that doesn't work alright so um quick poll on zoom if you got your raster data loaded and it looks something like white clouds in a black sky go ahead and hit the yes button in the participant tools on zoom if you're having trouble go ahead and post in the chat and some of the helpers will go ahead and try to help solve that give you a second to respond to that looks like everyone's doing pretty good not seeing any questions in the chat so I'm gonna go ahead and move on but if you do have questions go ahead and post them in the chat and our helpers will try to help answer the question or solve the problem they're very experienced Phil they'll do a good job I promise all right so next up we just did raster data next up we're gonna do with some vector data two different types so we're gonna first load some shape files and then some CSV data so I start with shape files which are vector data so points lines and polygons so again we're gonna come back over here to our left hand side menu and we were on raster but we're gonna load vector data so i'm gonna click over here on this vector menu instead the interface looks almost identical to the raster menu but i will tell you from experience when you forget to change it it will confuse the computer if you try to load vector data when you have the raster menu open do it all the time so I'm just warning you if it tells you your data source isn't valid check and make sure that you click the right thing on on the left hand menu so again we're gonna click on this dot dot dot button this will become a running theme for loading data so it remembered that I was in this particular folder because that's where I went for the last thing if if yours doesn't remember that's fine just go ahead and navigate to where you saved your workshop data so we're gonna load up three things shape files you may notice like here's my seismic hazard zone shape file and this one has four four files that all go together and I like to think of it as a shapefile entourage they kind of travel together they hang out together but the ringleader of the whole collection is this dot SHP file that's the one I want to click on to tell QGIS to open the other files we'll just come with it and QGIS will know to look for those and these particular shape files have four files that go together you may see it more or less depending on the shape file and there's always at least three together you kind of hope for the fourth prj file as well because you need that information but sometimes there's more than them for weight so I clicked on my seismic hazard zones to add that um you can also we could just click open and do exactly what we did for um the raster and then come back and add another one but I'm lazy so on a shortcut I'm gonna hold down on my computer I'm on Windows I'm holding down control and I'm clicking on the next one shoreline dot SHP so now I have to highlighted I can scroll down and then pick my third one which is the street center lines dot SHP so I'm just checking so we've got I'm looking at the the written material so we've got streets center lines seismic hazard zones and the shoreline so we've got all three so I'm going to go ahead and click open and now you'll see here we've got sort of a list you can kind of see like here's where it begins with the path and then there's if we scroll over you'll see that there's three paths in quotes so it adds that for us just fine I'm gonna click the Add button now that I've got all three of those in there and you'll see that I've added more things in my layers panel and then if I move this out of the way we've got some data is showing up on my map which is great so that is how we load vector data so the last thing we need to load in our data that we're going to work with today is the CSV data so CSV stands for a comma separated value I've heard variable whatever it doesn't matter what really matters this is is that this is a text file and it's kind of like a table but instead of having like in Excel where you have the cells that look like little boxes it has commas or some other thing that delineate swear the edges that column should be so with the CSV it's a comma but it could be for example a tab delimited file where you have tabs the character tab between all of the variables in your data set it could be a semicolon a tab pipe it could be anything i if you're building your own I would recommend using something that people aren't going to use in general I really like pipe because most of the time when you tell people that there's a character called pipe they don't even know where it is on the keyboard so they're not likely to use it and accidently screw up your time your delimited file because they wouldn't accidentally put a pipe where it doesn't go so anyway we're gonna use the CSV that's probably the most common you'll see and so if you open this in a text file you'll see a bunch of commas separating things out so we're gonna load this much in the same way that we did the other data you'll notice here on your left-hand panel in your data source manager there is this option for delimited text you notice a little icons a comma that's because it's for loading CSVs which have commas separators so that's helpful to know sometimes having that search image for what button you're looking for can can help find things more quickly so again we're gonna add in our filename clicking on this dot dot dot button you'll notice this interface looks a lot different we have to tell it a lot more information so it loads it correctly but we're gonna go ahead and start by loading where we found the data which is with our button here like we did with the other ones mine is defaulting right now to look just for text files yours may show all of the files and that's fine what you want to do is click on the street tree map dot CSV file here so you'll see if you're on Windows I imagine that probably does this to makes a little icon it's like hey this is an excel file expand Excel loaded and it will open in Excel but it won't do the same thing it'll just look like a table so I'm gonna go ahead and open that and you'll see we've got some options up here so we can tell it what name you want to keep I'm gonna leave it the way it is just so it matches everything in the workshop materials and the character encoding you can change it's not uncommon to have different character encoding this one is utf-8 so I'm gonna leave it but if you needed to switch that you can especially if you're dealing with with different current character set our file format here I'm going to pick CSV comma-separated values I'm gonna just show you really quickly if I had a custom delimiter I could click this and I could tell it oh I have tabs instead of commas or colons or other things if I wanted to it doesn't have pipe for an option I could type in here and tell it I wanted pipe which looks like that so just a straight line but we have CSV so I'm just gonna make sure that CSV is clicked and now that's the default like I said it's the most common but not necessarily great if you have like a free response where people are like you know you're collecting data through a type opal interface and people can write paragraphs and they might use commas huge as can probably handle it it's pretty good at sorting that stuff out but in that case I would pick another character that they're not likely to actually accidentally type other things we need to pay attention to are here we have this option for our first record has field names so we're gonna leave this checked because our CSV has has headers with for our columns so we have the names of the columns of the first row if you didn't have that like if you're working with census data and you didn't want to put those in you could uncheck that so it doesn't make your first row of data the column headings I'm gonna let it detect the field types it does a pretty good job most of the time there's ways around it when it doesn't for the geometry definition we have point coordinates you could have other formats like well-known text or if you just want to bring in a table that doesn't have a geometry you can do that it usually guesses pretty good 4 which is the X in the Y field if you have words like longitude and latitude it usually picks those but check and make sure that they're right sometimes you'll get datasets with multiple lat/long variants and you want to make sure you pick the column that you want let's see what's really nice is at the very bottom here it'll show you a preview of what your table is gonna look like so if we had picked the wrong delimiter for example it might show this is just each row is just one column but when we picked the right one it'll split it up so we can see we've got some data here we've got a tree ID we've got some kind of status species some address information some coordinates here we have location which is a combination of the coordinates from the other columns X Y chord so we want to make sure to pick the right one in this case so I want lat/long because that is in degrees and that makes sense I don't know what the projection is of this X chord and I could guess but that can be challenging all right so this looks good to me um I'm gonna go ahead and click Add and we should see um we should start seeing a bunch of tree locations pop up this is a pretty big file so it may take a second to load on your computer I'm gonna go ahead and now close my interface here's me hang for a second just sit tight and let it load looks like a bunch of pink ants marching around I'm floating but so I'll give you just a second to get that loaded up so for our zoom participants go ahead and look at your participants menu and go ahead and tell me yes or no whether or not you've got your data loaded up so you should see if you've got everything I have it might be in a slightly different order you've got your street trees seismic hazard zones your shoreline your Street Center lines which you can't see because everything's piled up and then your digital elevation model so just so long as you've got those layers loaded up you're good alright so I'm seeing in the chat window we've got some questions about oh about the about the projection let me go ahead and show you that again so I'm gonna I'm gonna open up my data source manager again and I'm going to I'm just gonna load this like we did I won't add it again so we don't need two of them but I'll show you how this works so one thing that you may may run into is in the geometry definitions section make sure you've clicked for this particular data set point coordinates pick longitude for the X field latitude for the Y field and then for your geometry CRS I'm gonna click on this button that looks like I think it's supposed to be a chronic projection it has like a little blue globe and it looks like it's wearing a little hat I think that's supposed to be a cone like a paper cone on top of it for conic projection what I'm gonna do is make sure that I pick the coordinate system for lat/long which is wgs84 huh if I um 326 if I type in 43 26 that's the epsg code for for lat/long wgs84 that's the easiest way to find it so I'm gonna click on that and then click OK and then you should see in the geometry CRS it should say epsg 4326 wgs84 apologies for skipping over that I actually had the wrong one loaded the other day when I went through this and was scowling at the computer and saying why are my trees not showing up where I want them to and it was because I had missed that box which is very easy to do because it's over here on this side so hopefully that solves it I'm gonna click close on mine so I don't need to add it twice but you should click Add once you've got that so I'm gonna close mine and then once you've added it you should have something that looks like this your colors will probably not be the same as mine but don't worry about that it just picks random colors to start alright so how are we doing with the data I see one person still says that they haven't gotten their data loaded are we we good to go ok so I think this is a good time actually it's a really good time to learn to save because we just did a lot of work so let's go ahead and save our data what I'm gonna do is come up here to my menus and I'm going to click on this blue floppy disk for those of you who are old enough to remember the days of AOL sending you these in the mail that's what this is I'm gonna click Save and it is going to ask me hey where do you want to put it it's suggesting I put it in my railroad folder which you'll hear about next week on Friday if you come to that work that presentation but I'm going to put this in my folder where I have my workshop data so I'm just navigating to where I want to put this I'm gonna put it here and I'm gonna call it workshop map you can call yours whatever you want um but I'm gonna go ahead and click Save so now we've saved our data this is a project so if you for those of you who are familiar with for example that ESRI tools this you're saving a qgz file which is analogous to an mxd file so if you're familiar with that system this is the project file we just saved if you for some reason can't find your will save data button you can also come up here to project and click save that way saving is your friend it's any GIS has a tendency to sometimes get a little bogged down it might crash and you'll lose stuff if you don't save so um my mental process is anytime I think I should save I go ahead and save I'm even if I'm in the middle of something don't wait you should save because you can lose a lot of work if you don't okay so I think now is a good time to take a quick break we've been sitting for about an hour so let's take about five minutes to go ahead and stand up and stretch if you need to you know get some food take care of stuff for five minutes let's come back at so on my screen it's just about a tip that right yeah it's just about eight o'clock so let's come back at about like let's say eight oh four all right or do the math I'm in Pacific time zone so next hour four minutes after the next hour I'm going to put up a little sign that says we're taking a break and so if people are wondering where we went on YouTube then they will know so I'm gonna go ahead and I'm gonna mute I'm gonna take a quick break to and we'll be back in about five minutes feel free to ask questions though in the chat we'll get to them as soon as we come back you all right for those of you who are taking a break I think it's time to come back to the computer hopefully though you haven't wandered off too far so while people make their way back I just wanted to like make you aware of where we are in the workshop material so we're just about to start the section that says working with raster data so if you're following along and the written materials and that and you got lost for some reason that that'll help situate you so we're gonna start with us working with raster data next move that to my other screen so you can see my QGIS window so hopefully you had a nice little stretch break and it's important it's very important to make sure we move especially for those of us we're working at home that are at a desk all the time to make sure we take time to get up especially in for hour-long workshops so welcome back we're about to start the working with raster data section of the written materials and so what I'm gonna do first is I'm going to go ahead and clear all of the things on my list I'm just gonna uncheck everything in here except for the DM so I've got my DM highlighted here in the layers panel on the left hand side and that's the only box that's checked so if you're if you're brand-new to GIS one of the cool things about the list of layers is that I can turn them on and off and the order matters but we'll deal with that in a little while when we get to the vector stuff but we're gonna start with raster data and we're going to start with working with our digital elevation model so this the first layer we loaded the one that looks like white clouds on a black background right now we are about to make this look a little bit more like the peninsula's in the san francisco area so so we turned off all of our layers that we don't need to work with so right now we should see our black square here with some sort of white fuzziness going on and if yours looks like that we're doing good so the first thing we need to do to be able to style this is turn on the tool going to let us do that so we're gonna open something called the layer styling panel and we are going to do that by going to our View menu there's there's multiple ways to open this but the one that's easiest to show for a workshop is to come up to the top of our menus here and click view and then panels and then we're gonna check this layer styling option so I'll give you a second to find that so again I went to the View menu went down towards the bottom and mouse over the panels option and that opened up its own menu and then again I'm going to click on layer styling so if I check that it's gonna close that option and show me the layer styling panel on the right side of my screen the other option that is a little bit easier is to right click up in any of the blank gray space and pick the layer styling panel from the panel's list so that's another option for you okay so just move those things moved around so I just use my little moving tool here that looks like a little white glove and if you click and drag you move stuff around I'm just makes me feel better to actually see it alternatively I can right click on my DM in the layers panel and click zoom to layer which actually centers it better that's just a quick little handy trick we'll use that later too okay so um now we've opened up our tool I'm going to make sure that this is highlighted over here in the layers panel and you can pick the option for what layer you want to deal with up here but I find it easier just to make sure that it's clicked but this drop-down does show you all the options so let's make sure that this drop-down up at the top says we're working with the DM so that all of the options make sense for raster data otherwise it will the options for vector data and will be very confused ok so we now want to make sure that we are on our symbology tab here so you have in this interface on the left side you have what amounts to little tabs I mean there's other things you can pick and they'll highlight but I want to make sure that I'm clicking on this one that looks a little bit like a looks like a paint brush that's painting a rainbow that's your symbology tab for lack of a better word area something so that's what I want so I'm working with symbology right now which basically means how things are symbolized or what they look like okay so right now at the top here it says we're working with single band grey for our options I'm going to click on this drop down menu where it's a single band gray and pick instead single band pseudo color so it's this one that has like the little rainbow icon next to it this is gonna let us work with some colors so again pick single band pseudo color and my data disappeared I'm not gonna worry because it just doesn't know how I want to style it but we're gonna fix that in a second and we'll come back alright so we have a bunch of options here at some point you'll want to spend some time playing with this you'll get a better feel for the interface I'm just gonna show you some things that work right now cross my fingers hopefully and you can play with this for your own data or play with the workshop date and get a better handle for it so this we're gonna pick band 1 here for the band this raster only has one band so only has one layer you can't have raster's especially satellite data for example or your photos that might have multiple bands to them this one only has one though which is nice because then we will all be for sure he's in the same one Sam looking at my instructions to make sure I don't miss anything ok so we are going to next click on this area that says min Max values settings if I click on a little triangle it's gonna expand any time you see one of those little triangles in this interface it's a there's more options in there it's just collapsed did not take up space so when I look at them so I want to make sure that I have min max selected again you can play with these options they work different we can be more useful with different different types of rosters right now this extent is for the whole roster you can pick other options but I want to make sure we've got whole roster selected and then for accuracy I'm actually gonna pick this one this is actual and then slower the reason that I want that is because this is a fairly small roster and I want to make sure that we get the whole range of values if this was if this was a really big roster like I'm working with like like earlier this week I was working with world Clem data which is the whole world tons of data in this data set I don't want to do actual because it's gonna take forever I want to have it sample but because we have a small raster I want to have it look at all the values so that's why I'm picking this one for the accuracy sampling it's better for big rosters and then so that's gonna help it determine what the min and Max values are the next thing we need to look at is some of the actual styling information so I want to make sure that my interpolation I'm gonna change my interpolation type from linear to discrete and now stuff is showing up which is both reassuring that the data is still there but also disturbing because my goodness that's a lot of red but that's okay we'll fix that in a second it really does not look like the city of San Francisco yet okay so then from our color ramp I'm going to right-click on yours may have picked a different color ramp and that's okay I'm gonna right click on the color ramp itself and select create new color ramp this is just gonna let us get into an interface that has some more options that are already predefined so instead of gradient I want to pick this catalog option for CPT - City so I'm going to click on that catalog that first catalog option and click OK these are a bunch of predefined color ramps and various color options I'm going to click on the typography option in that left-hand panel scroll down and click typography and then I want to pick the CDA option this one's really nice for for elevations that I'm gonna click off of them so you can actually see what's green it looks like it starts with blue so and goes up through white it's really nice for working with elevation data where you're going from the coast all the way to the top of mountains it's not so good if like I was working on a map for the Central Valley of California in the foothill area and I picked this one I was like oh I like the colors on this but then it made it look like the Central Valley was flooded because the lowest elevation was in the valley and that was not a good choice but this is a good choice today because we're working with a coastal area so again CDA is a good option here you can pick whatever you want um play with it see what you like but I'm gonna pick that one and click OK this one is a lot less intense on my eyeballs which makes my brain happier so there's that ok so um if so you don't have the live update down here checked you can go ahead and click apply if you do have live update turned on it'll already show you stuff which is great sometimes it's good to turn that off if you're working with a lot of data and you just want to make selections and you don't want it to try to update as you go but let's leave that live update on for now okay so we've changed our colors this is not great yet it's gonna get better and we shall fix this change this back to linear really quick so he changed my interpolation back to linear and so that it would show you all of the color range this looks a little better but we're gonna fix this a lot more oops I'm just gonna zoom back to zoom to layer okay so again we can do better than this we can kind of see some hazy stuff down here that doesn't this is land but doesn't look like land yet so let's let's do some finishing touches on this to make it look a little bit better oh I'm remembering to save so I'm gonna go ahead up here and click Save so that in case um my QGIS decides to stop working then I will have that progress saved so I see someone in the chat is asking about the color ramp so I'll go ahead and show you that again me me so that you have that so again in my layer styling panel I am clicking on this part that says color ramp I'm gonna right click on the color ramp itself select create new color ramp we're not actually making a new color ramp it's just how we get to the thing we want instead of gradient I'm going to pick catalog CPT City and then I'm gonna click OK and that's gonna open up ooh sorry we will fix this it's just changed my to a really intense blue in the background so I am on the left hand side here I'm gonna scroll down and click on typography and then in the typography options there's a whole bunch of things I want to pick this one that's called CDA they're not mine are not in alphabetical order which is annoying to my brain but that's that you just have to find it so it's kind of in the middle of the pack there so CDA and click OK and now I'm back to uh something that makes my brain happier so I'm seeing some questions about the raster values I'm gonna go ahead and let the helpers help with that just because I think that is something that they can help solve for the person having that issue one thing you can do is go ahead and set your min and Max values in the actual in the printed materials for the workshop itself at the bottom of this section it tells you what the min and Max values are so you can copy and paste those into the min and Max of your yours layer styling panel in case you need to sometimes it will set the values to INF which is infinite and I'm not sure why but anyway you can if you need to you can type those mid max values and again that material that number is in your written notes in the github notes so give you guys a second to work that out well you can't see because my video is office I just accidentally poured tea all over my french but you know that's me in a workshop okay so I think it looks like our question is solved in the group chat quick show of hands how are you guys doing it is everything good so far go ahead and give me a yes if you're ready to move on and click no if you need another minute to troubleshoot anything or ask some questions okay I'm seeing a bunch of yeses I don't see any noes popping up so I think we're good to go and move on okay so again this looks okay but obviously it's not um it's not what I expect the city of San Francisco to look like yet so I'm going to keep making some changes to this and will show you keep clicking in that spot and it keeps moving it you think I would learn to stop doing okay so so we're gonna make some more changes than this and make this look a little bit better alright so we're back in the layer styling panel here and we're gonna make some more changes to this from this interpolation drop-down now I'm going to change it to discrete and you'll see it made some changes nothing drastic this is just gonna help us change the way that we break up the values in the interface down here in this part of the interface so down below the part where you have all the colored boxes there's some more options for the mode instead of continuous I want to make sure it says equal interval so this is just gonna be this is the starting point for how we're gonna break this up we're gonna actually change the breaks ourselves but equal interval is a good way to start and then right now we've got five classes but I think if I'm remembering right yes we want ten so I'm gonna change the number of classes to ten so again our mode here is set to equal interval in the number of classes is 10 now in the interface and if you actually wanted to count you'd see it made 10 colored squares basically it sampled 10 colors from our color ramp here at equal spacing which is fine that's what we wanted to do we're gonna work with the breaks now so that the coast line actually looks like the coast line and again if you're following along in the printed materials I've already given you the breaks that I used in the last time I went through this but we'll walk through this so if you wanted to just copy and paste numbers you can pull that from there otherwise you can just type alright let me just make sure I've got all the things we need ok so um now we're gonna adjust the brakes on this so brakes being how we're splitting up the elevations into certain colors so right now we've got starting from zero up to elevation of in this case 31 meters it's gonna be colored blue that's why it looks like the city of San Francisco is flood because we're assigning what my brain thinks of this watercolor all the way up to 31 and a half meters I want to make my break at zero here so I'm gonna go ahead and double click on this first value next to the blue and I'm gonna type in 0 and hit enter there's my coastline that looks a lot better already and so what this does is say from your lowest value which I think is negative nine or something it changed mine to zero and infinity too but um yeah so I'm looking at the print material so the lowest value in the CM is is somewhere around negative nine so from negative nine up to the value 0 we're gonna color those raster cells blue which is good because in my mind 0 elevation is the coastline it's sort of where the water is we've got some kind of stuff out here which I'm guessing probably has to do with sea walls or just kind of randomness and in the way the DM was created I'm not gonna worry about that today if I was doing research with this I would definitely investigate the heck out of that and understand why I've got some stuff going on that looks very linear and artificial but for today I'm not gonna worry about that ok so let's go ahead and change some of our breaks to make the rest of this look better so my next break I'm gonna put at 50 and these are kind of arbitrary this is again for visualization if I was doing this for research and repeatability I would probably pick something else to break this up and again this is just for display we're not actually changing the values and the raster we're just changing how they are being shown so my next break I'm going to pick 75 see what I'm doing then I think 125 was my next one so as I do this you'll see that the image changes and kind of gets a little bit better resolved so my next one I'm going to make 175 scrolling down than what I do looks like 225 and you can put in any value you like play with it you know it's not something you can really break can always reload the data to 75 for the next one and these upper ones are just kind of arbitrary um you'll notice they're not quite linear and that's okay because again we're just we're just making this for for visual purposes and then my last one I think I wanted 350 and again the numbers for these the breaks that I did for the last one that seemed to work are listed in the written material so if you can't see all of what I've got that's okay you can look in the list in the written materials get that okay so I'm gonna go ahead and click save save because it's important so we don't lose it so this looks a lot better than what we started with which was that black background was white blobby looking clouds and okay I must have hit my mouse is just zoomed for me I'm gonna go ahead and zoom to where okay so um it looks more like we would expect the peninsula on the city of San Francisco to look and we've got some elevation we can see that you know there's some topography going on here we can see roughly what the coastline looks like and so for visual purposes I think this is a lot better of an option and then so that this is just one look at how to style raster data there is a lot more you can do with raster including analysis like doing raster analysis could be another entire workshop so this is we're gonna leave it today for raster data but if you look in the workshop materials there's a link to the QGIS training manual raster module which can teach you a lot more about how to work with raster and how to do some analysis with it but for today this is we're gonna leave the raster learning part of it and we're gonna switch over to vector data next so I'm going to pause for a second and see are there any questions about where we're at or any questions about raster data in general okay I'm not saying any questions popping up in the chat so I think we're good to go for the next part if you haven't saved go ahead and click Save sometimes I think I need a little thing that pops up and says remember to save okay so we're gonna switch over now to working with vector data so if for whatever reason you're following along and raster data is just isn't working for you right now don't worry about it because the next part isn't going to rely on this section so we can just go ahead and let's go ahead and uncheck our diem because we're not going to work with that for now it'll be there waiting for us if we want it later when we make them out but for now we don't need that so let's see so we're gonna go ahead and turn off our diem and then we are going to turn on our streets center lines one thing I'm gonna do too which can be helpful is right now for the way I loaded my data the streets are kind of underneath a whole bunch of other polygons so for example I turn on my shoreline covers it up that's not good so I'm gonna click on my streets center lines I'm gonna click and drag and as it goes up you may or may not be able to see there's a little wine that tells me where it's gonna drop it when I release my mouse I'm trying to aim for right under the tree layer and so I'm gonna go ahead and release and it will now if I turn on the shorelines for example you'll see that the roads are on top of the shorelines visually that's just for later we'll need that in a second but there are roads I'm going to right click and pick zoom to layer just so I can see them a little bit better so you'll notice that the roads are represented as lines which you know you're probably thinking well duh it's a road it's a linear feature of course it would be a line but it could be polygons depending on the scale we're working with but in this case these particular roads are represented with lines and yours may be a different color like mine today is purple I remember when I first was writing this workshop everything all the colors is picking like a really angry red and so yours may be a different color and that's okay we're gonna we're gonna fix that in a second I would not pick purple to represent roads most of the time so we'll we'll fix that okay so we're gonna be working again in our layer styling panel if you make sure that your street center lines are clicked in your layer panel you'll see that it has switched over to street center lines or you can click on your drop-down and make sure that it's picked they're a Michelle quick question about is the OHS there and autosave option for kitchens there might be that is a good question that would be a good one to ask her later I don't think Curt's on the call on the zoom session but he may be over in the YouTube session um there might be but I wouldn't to be honest uh okay somebody says autosave plug-in um yeah that's great I would still encourage you to remember to save too because you don't want to rely on that it's a good for it's good for backup if you turn on the auto save option with a plug-in but I would make sure that you save any way because you don't lose anything I have I have you know everyone has those those days you know when you've been working and you're just plugging along and getting all this stuff done and then it crashes and you realize you were not saving so um remember to save yeah but it's a good option to know that you can you do the plugin where I'm not gonna show you plugins yet if we have time at the end remind me and I'll show you how plugins work but let's get through this stuff for now but that's great thanks thanks Leah for bringing that up so we're again we're gonna be working our layer styling panel here just like we did for a raster styling but now you'll see that the options look a lot different because we're dealing with lines and sort of grid cells so we're gonna right now it's set to single symbol we're gonna leave it that way later on we're gonna do different layers styling types and then you'll see here in this box in the middle it I'm not sure what this box is called it probably has a name but we have line and then simple line I'm gonna click on simple line and you'll see that the feature are the options here the properties change a little bit just know that there's different options depending on whether you click the line or the simple line see I'm just looking at the list to see what it is that I want to make sure that I show you here so I'm going to now change the color of this layer so I Purple's lovely but let's pick something that's a little bit more Road like so I'm going to right-click on the color box mines purple yours will be something else no that's not the one I wanted I'm just gonna left click on it that's what I'm doing so that brings up I'm gonna make this panel a little bit bigger just dragging it over so you can see what I'm doing you have different options for picking colors there's these tabs across the top here so different interfaces for picking colors in different ways including this one here this one's nice because it will remember colors that I've used in the past for various reasons so that can be handy when I'm working on cartography and I need to keep picking the same colors over and over again or if I want to start with one color and then change it up a little bit to make a variation and there's also this dropper options where if I pick it I can it turns into a dropper and I can say like oh maybe I really like this pink from the shore lines I can click it and it slurps up the color and makes it the same I don't want pink roads so we're gonna fix that so you can work with these different interfaces they have their advantages and disadvantages and you'll kind of the more you work with it the more you'll probably pick a favorite color so I'm gonna pick in the workshop notes I gave you a HTML notation for a color so if I come down here in all the little interfaces there is this HTML notation I can clear that out and I can type in a hex code for a color so in this case this one I'm gonna choose is just six sixes two three four five six nice and easy it's a dark gray color which in my mind is a little bit better for roads I tend to advise people to think like a kindergartner a kindergartner would not make a blue tree unless that was the only color crayon they had if they had all the colors trees are brown trunks with green tops it's expected it's easy so for roads for example and I'm doing cartography roads are black or grey I'm probably great but um I'll make those kind of really obvious color choices to start it just makes things a little bit more intuitive for the viewer you know you can make choices as you go to change that up but that's usually where I start okay so we've picked a gray color and you could also go through these interfaces and pick you know some kind of color gray off the color picker list but it's also easy if we want to all have the same color and if you want to use what I'm using just plop six sixes in this HTML notation you'll have the same color so I'm gonna go ahead and now they've picked my color I'm going to click this little back button to go back to the interface so now it's not super exciting looking but we are going to do some more styling on this in a second so again now we've taken a vector layer and we've styled it I've changed the color for a single symbol the way we wanted to and that has its advantages a lot of times we just need to pick a color and be done but now we're going to explore some more about the tributes that this particular layer has so vector data is typically made up of two parts we have the geometry which is the representation the points the lines the polygons whatever that shape is that we see on the screen that's one part and we call that the geometry on the other part of this is the attributes which is the information about each of those pieces so each of these lines here like this the freeway that's going on the bridge has information about it as well as the location itself and the way that this is represented typically in a graphical GIS is through the attribute table so I can see the attribute table if I right click on my layer so in this case I'm going to right click on streets enter lines and then in the menus that opens up about the middle of the list is open attribute table so I'm going to click on open attribute table and it will open the attribute table just like it sounds like it should so now we can see that we have a whole bunch of rows of data and we can see that there's information in here and the column names are somewhat helpful if you want to know more about what each of these actually means there's a readme text file in the data download that'll tell you where to find the attribute information about this but some of the information we care about are like here's we have the street name we have the street type this column n hood is the neighborhood so if you're familiar with the different neighborhoods in San Francisco that can be helpful information the other thing that we care about is this class code this tells us what kind of Street it is so um we know that that is in there that'll help us for some of our cartography and a little bit so we have a bunch of information in in the table which you know is is helpful some of its helpful some of it is probably more helpful for the people that made it which is the city of San Francisco then someone like me who's just trying to make a map but that's ok so the key thing to know about attribute tables is that each row in attribute table is linked to some entity in our map so if I pick one of these rows I can just pick any of them and pick Row 3 what will happen is it will in theory highlight that particular section in our map however this is probably a really small street so what I'm gonna do is click on this icon that looks like a little magnifying glass and if I hover over it it's a zoom map to selected rows and then click on that and it's zoomed in you can see it's this yellow line I'm gonna use my zooming tools here and click on minus and zoom out a bit I pick probably one of the smallest streets in San Francisco for today so it's the spot right here and so you can see that that the point of all of this is just to say that each of these rows in the attribute table is linked to some character representation here in the map itself I'm it goes the other way too I can select if I use my selector tool you can click on a segment here and that will actually highlight in the attribute table if I pop them up to the top that's not what I wanted back to the table this is what I wanted and you can see that this is the row and it's we can see information about that but anyway the key information here is that a schrab u tables are linked to the map itself so we can click on one and see the other and also all this information is available to us when we do cartography so we're gonna play with some of that in just a second I want to make sure that I don't have anything too highlighted so I am going to click on this button here that looks like if it wasn't so teeny-tiny on my screen maybe it'll be easier to see on your screen it looks like a yellow box and then a little red no-smoking symbol what this does is it just turns off the selection it doesn't delete anything like the I've had students say oh no but it looks like it's gonna delete something because it has a red no smoking symbol it doesn't delete it just turns off the selection so no nothing is highlighted which is what I want okay so we can also because all of this tabular data is here I can use this tabular data to do a little bit of analysis that we call select by attributes so let's say I just wanted to select all of the roads of a certain type I can go through by hand and pick each row that for example has an F code of five or class code of five but that's going to be tedious with all these little tiny lines that are in this data set so I want to do this kind of programmatically I want to tell the computer do the selection for me so just I can see everything I'm going to right click on my center lines and I'm gonna click zoom to layer so I can see everything go back to my attribute table so we can see that normally I'd be doing this on two screens so everything isn't piled up but obviously that doesn't work for a workshop so bear with me while I've got stuff stacked up and so if I want to build an expression and tell the computer hey do the selection for me I'm going to use the expression builder which is this little icon here that looks like a script e over the top of a yellow square so select features using an expression that's what it says if I hover over it I'm going to click on that one in the written materials there's also probably a better view of what that icon looks like help you find it and this is our Select by expression interface we're gonna build an expression which is kind of similar to if you've worked with SQL it's a little bit similar to that but the interface is gonna help us build it I appreciate the interface because as you may have noticed I'm really bad at spelling and making typos so if I can click on stuff it's really helpful because then I make sure that I've spelled everything right just from a practical perspective so I'm gonna open up in the middle here and we have a bunch of options I'm gonna open up the drop-down next to fields and values and that's gonna show me all of the column headings for my attribute table so what I want to do is I want to work with class code because that tells us what kind of Street we have so I'm going to double click on that you can see it put class code here for me it's spelled correctly and it has the double quotes around it to tell the interface that this is a column heading and so column headings get double quotes text and we type in text get single quotes I never remember that so if I double click and it does it for me all the better because then it is right and I don't have to troubleshoot that so I've got class code and then down here I've got options I'm gonna click the equals button you can type this in with a keyboard but those of you who've worked with GIS long enough you may have remembered a situation with ARC where if you were using this kind of expression builder if you typed in with a keyboard it didn't work so I tend to use the buttons just from from that for many many years ago okay so we've got class code equals and now we need to tell it what we want that to equal so I'm gonna come over to this section here where it says all unique and what this is gonna do when it click is it's gonna give me all the values that class code has available this is only a good option because I know we only have in this case 7 code 0 through 6 if this was continuous data like my elevation data this would be a bad bad choice don't do that if you know you have a lot of options you just kind of want to see what the format looks like I will use this 10 samples and it will pick 10 out of the list if I had like 500 different options I wouldn't want to use all unique okay so I can see now I've got numbers here and I let's let's do class code equals 1 let's see what that looks like so I'm gonna double click and it put the 1 over here in quotes normally we would think of the number 1 as being a numeric value but for whatever reason when this data set came in to QGIS it may have been how it was defined originally by the person who made the data set this is not a numeric field this is a text field so in this case we have to have quotes around one so that it knows that we're looking for the text 1 and not been not the number 1 if we took the quotes off of it it wouldn't find any matches so this is a handy way to kind of troubleshoot some of your data issues I'm looking at what values are there you can also there's places where you can see what the type of data each column has but this is kind of a quick way around this but also just pointing out that sometimes numbers aren't numbers sometimes numbers or text okay so we've built our expression we should have class code equals the number one with single quotes around it and then down here with the preview it says zero that means zero errors so that's good if we had screwed something up and it didn't understand it would give us a little error message here so I'm gonna go ahead and click select features and now you can see that um it's selected things in my attribute table if I scroll you can see there things selected so yours might look like this it also tells you up here at the top of the attribute table that it has so many features total and it's selected 108 if I move I'm gonna go ahead and minimize this so I can kind of see my and move this sort of off to the side so you can see what's selected all the yellow things our class code one so we might be able to make some guesses about what class code one is so you can think to yourself like if you're familiar with San Francisco you might guess this looks like freeways or highways depending on how you want to call it but these are really big roads these are the ones that people are on to get from place to place and not not on the grid itself so we've got the freeway here that's on the bridge we've got these major connector streets that kind of swoop through the city itself so I can start making a guess if I'm looking at each of these individual class codes what they might be so we could also for example let's say we wanted instead to investigate what class code 2 is so I can remove class code equals 1 from my list add class code equals 2 select features and now we've changed our selection and we can make kind of a guess of what class code 2 might be the good news that this data set came with metadata and again the readme file that comes with the data download for the workshop has the links to where all of this came from but I've also put the information into the written materials as well so we don't have to guess we know what these numbers are but if we add - we can even play with that and try to figure this out so if you guessed freeways for class code equals one you're right class code two with highways and bull we'll be working with this and you'll find out what the whole long list is but as you can guess - there's you know residential streets there's major streets there's other freeway ramps things like that okay so I'm going to go ahead and close this because we've looked at how to work with the Select by attributes I'm going to again click on the button here in my attribute table to deselect all the features so that nothing is now selected which is good and I'm gonna close my attribute table I believe well I can always reopen it you can also unselect things in your selection menu with buttons up here in the top I believe this one D selects everything it's got a little red no smoking sign on it so that just again clears out the selection it doesn't delete anything okay so are there any questions about selecting by attributes before we move on to the next piece okay I'm not seeing any questions in the zoom chat give you just another second in case you're still typing all right so we've we just played with the attribute table we learn about how the attribute table is connected to the geometries that we see in our map interface and we've learned that we can connect that that data in the attribute table to making selections and investigating spatial relationships and things like that based on attributes and the selection is great for selecting things in visually seeing it to explore the data but it's not good for making maps you don't want to make a map and leave in the selection highlights it doesn't show up in the legend when you generate it and also it the default is usually either yellow or like that cyan blue color which is not always a good cartographic choice we want to make our own choices we want to set those in in a way that makes sense for us you can change the selection color by the way and it's in one of the options I'll let you go define how to do that if you wanted to change it but again the selection is just for data exploration it's not for making maps really so we're gonna now look at how to work with that attribute data for cartographic choices so we're gonna classify our attributes and and your styling based on that so we've got our roads again our roads are selected in the layers options over here so we've got our layer layer styling panel is set to our Street centrelines now instead of working with single symbol like we had we are going to work with categorized so again our data disappeared because it doesn't know how to categorize it that's fine we're gonna fix that in a second so from our value drop-down menu here we're going to pick our class code so we're gonna be again working with our data for what kind of Road this is so zero through six I believe so this is going to pull our data from the attribute table to do our Slayer styling which is super cool like I would really not want to have to do this by hand so I love that this interface does this so we're gonna keep our symbol as this line you can play with that there's a myriad of options for styling we're just gonna be simple today so let's see what else do we want - I'm just checking the notes to see what make sure you don't miss anything okay so we've got our okay so I think we're ready to go ahead and click classify and I just want to make sure I didn't miss any settings I need to change before he did that so what this does is it looks at the attribute table and it says okay I've got value 0 through 6 and I'm gonna make them all random colors because that's literally the color ramp we picked with random colors you could change this and you could have it pick any manner of color ramp or you could use like even the one we used for the raster data and yours it's gonna pick at random so yours they're gonna be slightly different colors than mine but it's all gonna be from this random colors color palette unless you changed it this is okay it's not the best I wouldn't leave it this way depending on my my purpose maybe if it was a directions to a unicorn birthday party I might keep these because lots of things and purples and the options that it picked for mine but even then I'd still probably pick my own colors and not you may know is I'm not a huge fan of leaving the defaults the defaults rarely are what what I actually want so that's fine it's it's a good start but let's go ahead and and fix this and start changing this to be the way we want and so the cool thing is we can see that each of these class codes got its own color and so now we can kind of start to pick out some some things that maybe help us make sense out of this road situation so in our list it categories everything and then it always has an option for stuff that isn't categorized I'm gonna uncheck that because this data set everything is categorized but if you didn't have it if you had an option that was just blank for example which happens for a lot of really good reasons that that is a good thing to have but we don't need it for this particular dataset so I'm going to uncheck it just so that it's not causing my brain any trouble I'm not worrying about it okay so we're gonna uncheck that last all other values that make this fair you can see it says all other values don't need that I see someone in the chat so this new business idea to make unicorn maps you could totally do that that was a good time to start a new business if you're stuck at home ok so we are going to sorry I'm just reading the notes here make sure that I am on the right track so we're gonna select all the symbols what I want to do in this case the goal for this is because these are roads what I want to do is I want to make them all the same color but I want to indicate what kind of road it is based on the width of the line so for example freeways the big roads that are big important roads will be wider than say for example residential streets I'll make the residential streets fairly small so I want to make them all the same color to start and then we'll mess with a way that it symbolized after that so I'm gonna click on my first symbol here with the value 0 I mean they'll hold down shift on my keyboard and click on my last one so I'm gonna highlight 0 through 6 so again I clicked at the top held down shift clicked at the bottom and it highlighted everything there are many ways to do what I'm about to do so if you already know a different way to do this that's totally cool again the goal is just change them all to the same color so I'm gonna right click anywhere in my highlighted space and I'm gonna change click change color so again I right clicked and I'm gonna pick change color and now we're back to our color interface you saw this earlier so we could go back to our color that we had which was all sixes I think for this section I had a slightly lighter color so this one is alternating a and zero three times a zero three different times make sure I got that right okay yeah so now when I click off of that I've got this kind of medium to light gray color which you might be like Michelle why did we change just click the back button so why did we change why do we classify this if we're going to make it all the same color don't worry we are going to to fix this in a second so again I click the back button to come back to my interface and now we can see I've got all of my roads the same color now what we're gonna do is work with some of the legend stuff and then we're going to work with the width of the roads itself but first let's give these a label so that we know what we are working with and this helped situate our brains so from the metadata that come came with this data set um we're going to label the different types of streets because the 0 1 2 3 thing doesn't make a whole lot of sense to my brain I'd rather have labels in plain language so what I'm gonna do is click on the legend in the legend column I'm gonna click next to the 0 and you can see it allows me to edit this now so for value 0 I'm going to type in private streets so those are those are streets that are not publicly publicly maintained for those of you outside of the US you may or may not have these they're like roads in special neighborhoods where the city isn't responsible for maintaining those so if I click off of that notice nothing's changing in the map itself but the labels over here in the layer panel do change which is going to be helpful later for identifying things and again the the things I'm changing all of the text is in the written documentation so if you want to go over there and follow along that might be helpful or copy and paste so I'm gonna click on my 1 in the legend I'm gonna change the legend for one to be freeways and then I'm gonna click on two and two is going to become highways see isn't this better already now we have actual words for these things huh and then for three I'm gonna change 3 to major streets so you can think of these as like the the big streets like though the ones that they're not freeways or highways but they're like the big ones that help you transport across the city like like Market Street probably in San Francisco's probably label as a major street so for for these are going to be secondary streets now you all are experiencing the pain of my left shift button not working great today a lot of typos so for 5 we are going to have local streets and then for 6 these are freeway on-ramps we're gonna call those freeway ramps so again this is just for one it'll show up in the legend when we make a legend in the map but also that way we can kind of see what these actually mean because the numbers don't make a whole lot of sense for the types of streets we don't refer to streets by numbers generally okay so that's good now we kind of this will help us with the next part which is changing the road width based on the kind of Street it is so what I'm gonna do is for our legend here I'm gonna click on the first symbol which is the the first grey line next to the zero if I double-click on that it's gonna open up again the styling interface for this particular line um we can leave the selection up here at just the higher level line so it's gonna change the width of the whole grouping what we're not gonna see today is that you can actually stack up multiple lines for example if you wanted to do like a black road with the yellow dashed line down the middle you can do that by stacking them up that's why there's only one here because we're only gonna have one but you could have multiple lines so we're gonna deal with the whole group here I'm for the width I'm gonna leave this one at 0.26 but now you've seen where we changed that so I'm gonna go back for the freeways so category one I'm gonna double click on that line and this one the width I'm gonna changed a 2.0 so freeways are big they are something we need to be aware of so um we make that pretty large and these are gonna kind of look a little chunky I think on the the screen for sharing but you can see an example of this on a slightly different screen in the printed material so so there's that so I'm gonna double click on the line next in two I'm also gonna change the highways to 2.0 because honestly highways and freeways and my brain are the same thing so they're gonna get styled the same way for major streets I am going to label that with a width of one so they're big but they're not as big as freeways so you didn't see I'm kind of making a hierarchy here for the size of the the roads for for for secondary streets that's going to be the default point two six the same for local street so I'm not gonna change that because they're already at 0.26 and then for the freeway ramps I'm gonna make that 0.5 because they're kind of intermediate they're bigger than some things they're slightly different um you barely see these because there's not very many in this particular data set but that's typically how I will style Street data same thing like osm kind of has a hierarchy about it too they're called something else I think but if you're working with it less on data you can kind of do something similar okay so this already looks a lot better I'm gonna go ahead and click Save so everyone remember to save so this looks a lot better right there's a little bit more intuition about what all of these roads are I may not know that these are freeways or highways but at least when I look at it I'm like oh these are big streets versus the little neighborhood type streets in the grid so that is great this is a little bit I think for my brain a little bit better and also communicates what was important to me about this data set which is not only do I have Road Center lines but there I have information about the roads so I'm using that do you have any questions about using the categories for symbology before I move on to the next section give you a second in case you're typing okay so it we're at the end of the section we've been sitting again for about an hour so let's take a quick five-minute break get up move around do a little dance get a snack whatever it is you need and then when we come back I see there's a question in the chat I'll go ahead and answer that when we come back so let's um my computer says it's about on the hour of nine o'clock for West Coast folks and so let's come back at five minutes after nine o'clock give or take whatever time zone you're in so I'm gonna turn off my mic for a minute or two and we'll be back here in five minutes so go ahead and take a quick break stretch your legs you all right everyone welcome welcome back we'll give you another minute or so to finish up your quick break and we'll we'll get to and see there's some questions coming into the chat window on zoom' over the break which is great we'll answer some of those questions in a second I also had a chance during the break to pop over and take a look at what's going on in the the YouTube livestream so thanks everyone for the discussion that you're having over there and for helping each other out and answering each other's questions on over there on the YouTube stream we've never done a live screen sharing workshop with zoom there's already enough windows going on on my end so I appreciate you guys helping each other out over there it's challenging to do all of this so I definitely appreciate the help and our helpers official helpers are doing a great job too but it's also you know this is a community which makes it even more fun and helpful so I appreciate everyone jumping in and working together so before we move on there was a question about how do you know what the label should be in the when we're changing the labels and saying what each of these categories is and the answer is with this particular data set it's in the metadata for the data so that this metadata is data about data and it's an explanation of what each of the columns means you know who made the data that kind of thing so when I downloaded this from the city of San Francisco they actually had information about each of the what each of the columns means and I linked that I believe in the readme file that comes with the data download for this workshop so you can actually go and look at the original data source where I were I actually downloaded the data from I see there Lea had a question about whether the data has changed since then and maybe was looking at a different as a different version of the the data which is totally normal cuz this archive has a whole lot of data in it to find a different one however this the data that I downloaded was from a couple of years ago at this point so the data set may have been updated so if you see the new version and it looks slightly different that would be expected I would think that they would be updating this because this is actually data from the city of San Francisco that is used by the city so um this is this is a couple years old at this point the data that I'm giving you but if you get it from the city website itself and they have been updated it might have changed but so the answer is when the short answer to it how do you know is someone has to tell you really that's why we need to make metadata I'll just leave it at that itself is a whole nother workshop but someone has to tell you what that is or you can play with the data like we did with the master Butte selection and kind of guess yourself and that's a less ideal situation but sometimes it's the only option if you don't get the metadata or any kind of explanation somebody's good data metadata is so dreamy yes it is good metadata is is really helpful so when you get to the point in your career where you start making data having metadata is a good thing it's kind of a gift to the people who are using it which could also be your future self so I highly recommend it okay so um that is a nice small rant on metadata let's move on to back to the workshop so we have just done we've just looked at how to use our attribute table to make categorised cartography symbols so we've made our symbols based on the information in our attribute table which is easy to take for granted but it's super cool that we don't have to do this by hand so the next thing we're going to do is look at something called rule based symbology so we're gonna switch over and we've been working with the streets center lines but we're going to start work with the tree data so I'm gonna turn on my street trees be a little patient with this um this is a big data set and we will clip it down in a little bit so it'll be a little less unwieldy and but just know that this might take a second to load on your computer and it because it's a CSV it that also makes a little bit more slow than if it was a native spatial type like if we're using a Geo package or a shapefile for this one it is it is a CSV so and we will change that in a minute but it can be a little bit slow to load so be patient with it okay so I've got my street trees loaded I've clicked on it in the layer panel so they make sure that my layer styling has shifted but again I can use that drop-down if it's not what I want um and my QGIS decided because it doesn't read it doesn't know the word tree it decided to make them pink today um which is fine I would not normally make pink trees but we'll we'll fix this in a second and pick a different option okay so the next thing we're going to look at is rule-based symbology and we are going to work with our attribute table again for our trees and do a little bit of analysis so this is kind of a real world example situation this is not this is hypothetical this isn't necessarily what's actually going on in the city of San Francisco but it's a plausible situation that we can work through so in recent years we've had in California in particular but other states in the US as well are dealing with this we're having this influx of little bugs called bark beetles they're beetles that eat the bark of trees and kill the vascular tissue of the trees and they are from other places in the world they're invasive here and our trees are not equipped to deal with it especially when we have trees that are you know horticultural trees that we've brought in from other places so these these bark beetles can cause damage to trees and sometimes even kill them so the scenario that I thought of to look at was we have all this tree data for the city you can see this enormous number of trees that the city is responsible for dealing with each of these points as a tree that the city actually maintains these are backyard trees or like trees that live on the street or in in front yards of the city maintains so what would happen if these bark beetles come in you know where would be a problem you know certain species are more susceptible to these beetles than other species so maybe we'll pick a species to look at and see what its distribution is and start looking at you know what could possibly be one of the effects if one of these bark beetles came to the city of San Francisco so one of the one of the species one of the many species that's affected by some of these beetles is canary pine and they're pretty common trees for people to plant in California and because they're nice big trees they provide a lot of shade in there they're nice to look at so they're pretty popular to plant and also if you want to know more about specifically about the bark beetles I have a link in the workshop materials to the UC Davis IPM integrated pest management site and you can read a lot more about those there but so we're gonna make a our goal is to make a map of where canary Pines are in the city of San Francisco and start looking we'll start that will help us use a little bit of like spatial analysis for where you might want to concentrate efforts if you were doing a monitoring program to check and make sure that you know these trees are healthy and where you might start seeing bark beetles first if they were to show up in their targeting canary Pines okay so again we're gonna be working in our layer styling panel um that's the theme of this whole section of the workshop I feel and we are gonna be working on our street tree data so again we selected in layer panel we see that the right panel is selected it's also a nice tip-off when the color is the right color that matches your symbol kind of clue you in in case you have picked the wrong one which I do on occasion so now we're going to work with a different kind of symbology so instead of single symbol or categorized we're going to pick rule based so this is going to make let us make a rule that does our our is symbolizing so it's kind of like making our own categories there are a lot of trees in this data set so I could do categorized but then I'm gonna have a heck of a lot of categories to deal with this is gonna let me just sort of make my own categories and find them how I want we're just gonna do one a rule that looks at which of these points is Canary pine but you could do multiple you could search for multiple species for example and have that symbolized in one way and hopefully you'll see how to do that once we get into this okay so we have the default rule that it picks is the one that show everything I'm just gonna uncheck that so that we don't have a whole bunch of points constantly loading and bogging things down so right now nothing's showing that's what I want I'm gonna come down here to the bottom of my layer styling panel you may have to scroll depending on how much you can see in your window I'm going to click the green plus button that says add rule if I hover over it looks kind of similar to some of the other things we've done so things should start looking familiar to you in this label section of the new rule that I've started this is where I'm going to give it a name ok so right now it doesn't know what to do so it's decided to show them all in this lovely shade of 70s golden yellow so that's fine we'll fix this in a second but for my label this is a label I'm gonna see this doesn't change anything for filtering or anything it's just like the human readable label so I'm gonna call this canary pine fine so that I know when I have my rules that this is one specifically for Canary Pines now in this filter here what I want to do is I could type this out and sometimes once I kind of remember how the syntax works I'll just type in the box but we're gonna use the interface to do this I'm gonna click on this little little Sigma button here this looks familiar right this is the expression builder it's really similar to when we were selecting by attributes so what I want to do is again just like we did before I'm gonna open up my fields and I'll use and in this case because these are trees we have a different attribute table I'm gonna pick the one that's I want the column called Q species I don't know why there's Q in front of it we'd have to ask the folks at city of San Francisco but this is the column that has the species information and actually I'm gonna click here's a good use of this sample ten just it's not going to necessarily show me canary pine in this list but it's gonna show me what the typical syntax looks like in this column so I'm gonna see that there are it looks like the way this is set up is I have the Latin name for the species a space two colons another space and then the common name of the species so um I wouldn't necessarily design a database this way with two pieces of information in the same column but this happens so now we know that this is kind of what we're dealing with so unless I want to look up you know the all of this information and hope I do the exact same match for the text that they have we're gonna have to do something a little bit different than what maybe what we would normally do so um right now in my expression builder I have my quotes around Q species for the column I'm gonna type in caps I'm going to type the word like like as a string comparison so you can think of it as like equals but for text and we could have used that in the last expression that we built too but because we're not gonna do something that's precisely equal we're gonna use the word like now I could try to guess what the canary pine syntax is in the table or I could go look it up in the table but there is an easier way to do this and that is string matching with a wildcard so remember we learned earlier that for Strings I have to have single quotes so I'm gonna start by typing a single quote and then I'm going to type the word the symbol percent percent is our wildcard and what this means is whatever falls in this this particular space it could be anything and I don't care what that is now I'm going to type in the words that I do want to match which is the the latin name for kin so that is pinus space and then lowercase canary ences I don't think I spelled that right okay we will see if I said that right otherwise I will copy and paste from workshop materials so what right now what this says is I don't care what comes before it if you find - canary Ensis then that's a match but I also want to make sure that anything at the end like if there's a trailing space or something like that doesn't get taken into account so I'm gonna put a percent at the end as well and then finish it up with a quote single quote so what this search says is look in the queue species column and anytime you see a string that contains - canary ANSYS considered a match even if there's stuff on the front in the back of it I don't care I just want to see this particular string show up in in the entry for that column you can see a preview says zero so I'm gonna go ahead and click OK and what will happen is it's gonna do a search and in a second it will figure out which points to show up and what will happen is we'll only see the points in this rule that are for canary pine it looks like I did spell it right because I have canary Pines showing up and nothing else if your search doesn't work it'll nothing will show up or potentially you might have everything show up again but your selection should look somewhat similar to this again you can copy and paste the text of that from the written materials if that's easier I know sometimes in a workshop trying to type things in Latin is not the most fun thing to do so you can copy and paste out of there now I I've already told you this is not my favorite color it's kind of like UC Davis yellow which is kind of strange so I'm gonna go ahead and change this and I'm in the marker symbol I've clicked on simple marker so just the level that gets me to this the circle itself for my fill color I think in the workshop materials actually picked an orange color because I wanted it to stand out so I'm just gonna pick off the so you can monkey with us or pick whatever color you want if I wanted to be super literal I'd probably make my trees green but I find with the greys in the background orange is a good color to pop sort of off kind of pop up off of the orange or off of the gray so the fill color is the center of the dot and then I can also change the stroke which is the outside the line around it sorry I'm clicking on black this is where having the different interfaces can be helpful so actually what I can do is I can pick the color that I had before that orange and if I just want to make it a slightly darker color for the outline I can do that it's kind of a brown that'll work so they're pretty similar colors maybe I'll change this and make it later make it a little more yellow not doing a great job picking colors today that's alright so give that a chance to load and we'll see if we like that okay so I've got some sort of orange e brown dots on a gray background um that'll do if I was gonna finish this up for a like a published product obviously I would spend some more time on on changing the colors but for for workshop purposes this is great so um again this is the interface where I've written out my filter for my rule and now I've changed the way that it's styled so I'm gonna click the back button now that I've accomplished that you can see it's listing our two rules it's our one that has everything bad your default color and then we have the canary pine one okay so that looks that looks good to me so now we can take a look at this and we can say alright now we know in the city of San Francisco where the canary Pines are and if we think that canary pines are particularly susceptible to this situation when the bark beetles we can start to think of where we would want to focus our attention so if I have a crew that's gonna go out and sample and look for these bugs and see if they've shown up where am I gonna send people probably not to like this area right I'm I'm actually as a biologist I'm like this street right here is where I'm sampling or possibly over here it looks like there's a lot of trees they're all in a line so if if these things are gonna show up in the city they're probably gonna show up where there's a big cluster of these trees and this is also really easy for a crew to just walk straight down the street and check for these bugs so now this is an example of doing you know we've worked with the way that we symbolize our data to do a kind of spatial analysis a visual analysis but still it's an out and analysis so I'm gonna go ahead and click Save we've done a lot of work and we want to keep that so is there are there any questions about the rule based symbology so far normally at this point in the workshop if this was an in-person workshop I would give you a challenge to pick another species and add a rule on your own and then you'd work through that but given that we're online I'm not going to do that right now I will say if you want to do this on your own later I find it completely funny and somewhat satisfying that this city of San Francisco has a lot of carob trees so that's a tree that makes pods that are kind of like a chocolate alternative so you might actually want to consider at some point making your own rule and mapping out where the carob trees are because that they're not necessarily susceptible to bark beetles but I just I think it's kind of cool that we have carob trees hanging around in in the city so there's that I'll give you another second to type any questions you might have about what we just did okay so I'm seeing a question that could you export this is a separate layer for faster redraw time yes and we're actually gonna do that in the next not in the next section but the last section of the workshop I'm going to show you how to subset the data into a new layer because yeah this this one can be pretty slow it is a big set of trees but sometimes one of the lessons to learn was spatial data sometimes patience is really important but can be annoying if it's taking a real a long time okay so I'm not seeing any other questions I think we're good to go to the next thing so that two more sections we're doing really good on time so keep those questions coming as you have them and then I'm if we if we do end up finishing early then we'll take some time to answer questions and you can ask me to show you stuff and we'll just have kind of a an improv session but okay so the next thing is we're gonna use what we just did the analysis that we just finished to make a map with a print composer if for whatever reason the street trees are being really annoying and not loading you can go ahead and make your print composer map without the street trees in it you've got plenty of other layers to work with but I'll show you with the street trees that I've got so again we're at the section of the workshop if you're following along that's titled making a map with a print composer so that's what we're gonna do next we're gonna make a map which is probably one of the things you've been waiting to see okay so this is a really common task in GIS right like we load up layers and we do stuff but we also need to communicate it to an on GIS audience and so one way we can do that fairly easily is to make a static map that either becomes a image that goes into a report or maybe it gets printed in some way for people to look at because we we know that not everyone wants to sit at a GIS sometimes we need to be able to communicate outside of that okay so we're gonna prepare our layers first thing so anything the way that this looks right now any of my layers that are showing up how they look in the map canvas in the the main GIS window is how it's gonna look in the map in the print composer for the most part so whatever color it is here is the color it's gonna be so and we can go back and forth you sometimes like will start the print compose I mean like who I really could make some better decisions and so we can we can change it but the first thing I like to do is kind of get things the way I want them so um I have for example I've got my street trees I'm gonna make my my map is gonna be of Canary Pines in San Francisco and so that's my goal you could make a map of something else if you want but so I want to have my streets because I think that's helpful to communicate with my audience and then also maybe I want to have my shoreline because that's gonna kind of show me the boundary you can see my my QGIS is sort of stuck in a pink theme today so I don't really like having the city boundary being pink so let's go ahead and change that so this is gonna be similar I'm gonna breeze through this because you've seen a bunch of this today I'm so I'm clicking on my shoreline I'm going over to my layer styling panel simple fill I'm actually gonna change instead of having well maybe I'll make it white because I want to do a glow on this later so I'm gonna pick a different interface this one because I can get to white pretty easily and then down here it kind of went grace I'm just gonna make it white or I happen to know that the hex notation for this is all F's but it's kind of fun to play with the interface and that's easier okay so I've got my background is white um and then I'm gonna click back and then now I want to work with my stroke color black is kind of harsh I think so maybe I'll pick that let's try that dark grey that we had earlier that one like that yeah that could work maybe I'll lighten it up just a little I don't want it to look like the roads but you okay that's enough playing with that I'm and then maybe I'll make it let's see what it looks like if I make it a little bit bigger maybe 0.4 maybe 0.5 so when you get into cartography a lot of it is just sometimes fiddling and playing with stuff until you like it all right I think that's probably okay for now without spending tons of time on that so okay so I've got my shoreline on here which is now the sort of fat dark gray I've got my roads in here that we styled earlier with the different widths for the different types of roads and then we've got our canary pine trees that are right now orange which is fine and because I want them to stand out a little bit so that looks good I think that's probably all I want in my map for my print composer for now we can always add stuff in later but let's call that good for now and let's kind of open up the print composer okay so we've got everything the way we want it I am going to I'm gonna save because I'm by that Save button you should save too if you're following along so in my project menu I am going to come down to the new print layout so again I opened up my project menu and I'm going to select new print layout the first thing it's gonna ask me is what do you want to call this new print layout so I'm gonna call it Canary Pines I'm gonna click OK the reason that's asking that is because you can have more than one print layout for any given project and so and I often do if I'm making maps for like for sometimes I do cartography for publications like for professors that need maps and books and things like that and so we'll have the same data set but we'll style it a couple different ways and zoom into different parts of it so having two two or three print layouts it's not uncommon when working with that kind of data I'm gonna go ahead and click Save just because it's here and this save in the print layout saves the whole project so just something to be aware of the first thing I do want to come in here is I right-click on the blank page and click page property and this is gonna let me change the size of the page that I want so the default is a 4 in the US it's more typical to have letter size so I'm gonna pick a letter for me we'll leave it landscape because this is fairly horizontal data set but you could pick whatever you like when I'm working with cartography for publications for example often we're talking like 5 by 5 inches for page size you want to challenge yourself try making a tiny map okay so we've changed our page now what I need to do is add in all of the items that I would want in my in my page itself so it doesn't assume that I want a map in there I have to add every single thing including maps so your icons may be in a different spot mine or down the side for the most part so I'm going to start with this add map icon it kinda looks like a little scroll little plus on it I honestly don't ever remember what each of these icons does so I end up mousing over until I get the tool pop-up because I will not remember so that's really helpful for me so I'm gonna click on add map and then I'm gonna click and drag to make a box and that box is going to be the size of the map and I don't have to get this right at first I can always resize it and then when I release my mouse it will pick that size and I can tell you right now I'm gonna resize this because it's not centered on the page and I probably want to fill up the whole page so I will adjust that in a second now it's previewed the data that I've got um it defaulted back after I finished with that tool it switched to the Select mode it won't always do that it does do that when you add a map because you don't want to keep adding Maps but you should know to switch back to that I will forget and leave it on the other option here which moves the map data itself and then I often end up crumbling at the computer so anyway select mode lets me change the size of things so I can use that and I'm gonna snap I'm gonna click on the handle I'm going to drag and snap it to the corner of the map or of the page just as I fill up the whole thing the other thing I want to do is well we'll get to moving data in a second I'm gonna make sure that my map itself is selected and you can tell because it has a little selection handles and then I want to look at the item properties for this and I can see that right here it tells me what the scale is of the map itself in this particular page so I think when I was playing with this I noted that I had a scale of about 40,000 so I'm gonna try that and see if it works at this the size of page today it should in theory work if not we'll make some adjustments it's gonna take it a second to redraw the map especially with the okay that fills up the map pretty well I could play with this and fine-tune it a little bit but this scale number works just like map scale normally does I'm zooming in and out inevitably you'll forget just play with the numbers it'll be fine and then I want to I want to move this because right now the city of San Francisco this peninsula actually this is land right here but I don't have that I could download like natural earth data and add in land but I I'm not gonna do that for the workshop I'm gonna use this tool to move the item content and when I click and drag it's gonna move let me recenter that map so that I can bring that down to the bottom of the page and kind of hide the fact that I don't have more data that goes south of this particular area and that that will work for my purposes also because if I want to put a title I've got some space up here to do that I'm gonna go ahead and click Save again okay so we've seen how to add a map to our map composition and how to redo the scale and then also how to move recenter the content I will know right now I'm noticing that the scale changed just a little bit when you often when you move the data like when you recenter it it'll recalculate the scale and it'll just be slightly different I'm not worried about that in this case I would change that if I was doing a text scale like you know Oh one inch equals four thousand forty thousand inches or something like that I would fix that so it'd be nice even number but for this it's not gonna matter so now we can add that's the main thing that I typically do now we can add some of the other things that you might want to put on a map I'm gonna show you all well not all the things probably but I'm gonna show you a bunch of things and I will tell you you don't need all of these on every map I just want to show you where they are so that you can know if you need them one thing I'm going to show you is how to add text so there is this button that has a little T in it that's for text I'm going to click and drag and tell it where I want the text to be and then it puts the default is this sort of fake Latin word stuff in here so that you can actually see it we're gonna come into the item properties for this and highlight that we're gonna type in the box and it's gonna change what's in the map itself so I'm gonna call the title of the map Canary Pines in San Francisco and you'll see that it's sort of auto-updates here and that text is really small I want it bigger so I'm going to come down scrolling down in the item properties and I'm gonna change I can change the font if I click on that it defaults to whatever it is it defaults to I'm just gonna pick probably Calibri because I know that's a nice clean probably gonna make it bold just to make it stand out a little bit more font color black is fine in the font and your faces where I picked the size and one thing that's handy to know is that 72 inches for font is approximately one inch high on a printed page so that's pretty big 72 inches maybe I'll try 36 I'm gonna drag that make it bigger and make some more room we're gonna adjust again with a selection tool I can adjust and make sure that that is where I want it and then if I want to Center this I can make this the same sort of way there's the page and then tell it to Center the font and then that's hanging out the middle which is nice move this up so it's not on top of the island there okay so that's that's workable just for showing you how to do text and how to work with that there's other options down here like rotations and frames and stuff like that play with that you can you can also look up how to work with with all these things and other tutorials and also we've got quite a few works herb not workshops talks coming up over the next three conference days so you'll learn more about that if you you tuned into those and so some of the other things you might want to add I will I'll show you where to put in the legend so legends are challenging so in a quick legend and then draw a box and it will just make it whatever size it needs to be you can see that the default is for everything that is in the accidentally zoomed is everything that is turned on in your layer panel so actually no it's everything that's in your layer panel by default so it's showing like the DM even though we don't have that turned on but there the good news is there's layer properties for the legend as well everything in the layout has layer properties and so what I can do is look in here and decide you know how do I want to change this to be more useful so there are options I can add a title i ìm fall into the camp of not putting titles on my legend I feel like I don't need to label it legend but you can if you want it's that's up to you there are other things in here the big important thing is if I leave it on auto update it's going to update the legend to match whatever is in the layer panel in the map canvas which is not what I want so I'm gonna uncheck auto update and this is gonna let me make changes so for example I want to scroll down and I know I don't need this de M because it's not in my map it's there for something else but I can click - it's not going to delete the layer it's just gonna take it out of this legend and so - gets rid of that they don't need to know about the shoreline it's gonna be pretty obvious once they do some more styling seismic hazard zones also are not showing up so we take that out um so right now I've got my street trees I've got my center lines I might mess with this there are options in here where I can actually get rid of this and just keep the canary pine Co fettle yeah I can get rid of the other option so you can play with this there's a lot of ways to refine this and make it less legend but I tend to prefer from my own personal cartographic style I tend to be fairly minimal so that's why I'm kind of cringing about leaving it the way that it is I would I would pare this down a lot but I think that for time purposes there's it's not as useful to sit there and and fiddle with stuff to make it absolutely perfect you get the general gist of this and you can play with this and I know you know sort of where to look for some of these menu options let's see I'm see moving it in the chat window so I'm going to check and see um let's see so question when you lose the layout manager how do you get it back ah so if you if you accidentally closed your layout how do you open it I'm interpreting that as is what the question is so what I would do is come into project and then click on layout manager and then I would pick the layout that I wanted to work with in this case I just have the one that I've been working with but if you had multiple ones there'd be a list of them so then you could I think if you click show it'll do that i'm gonna click close okay I already have it open and I don't want to freak out my QGIS mall I'm trying to teach so hopefully that helps you find your layout manager again and then a question about how do you change your units from millimeters to inches that's a good question so in your layout typically if there is anything that asks you about sizing it probably has an option for drop down occasionally I found some of the interfaces right now don't give you the option and then I end up just using Google to translate whatever units I have in my head into whatever units it's asking for but I think that's in the net you know this is there's been a lot of progress in the programming of this so I expect some of that will change so if you're looking for changing units typically they'll be a drop-down that'll let you pick different units but if there's not sometimes you just have to translate the other thing you might want to add is a scale bar so I'm going to show you how to add that so again I click the scale bar button and then I have to draw the box for it but it will kind of default to the size that it needs to be so it can make this box a little smaller but it's not going to change the size of it obviously this is not where I would see fit in a finished product but so we've got our hour of legend or not legend scale bar the by the default and then if I click on item properties again I have a lot of properties I can work with and the map tells it you can have multiple maps in your layout so maybe I wanted to have like a zoomed in and a zoomed out map panel and so I have to tell it what map to pick from in this case there's only one but if I had zoomed out one for example I want to show where San Francisco is in the world there'd be multiple map options I can pick the style I can do single box I can get super fancy with lots of options again my personal style is to keep it simple and I often will actually take this down to just one box instead of two for my scale bar I can change my units and these are you know not map units but real world units what does it relate to so we can my brain likes miles still I know that's not common the rest of the world but that's what we typically use in the US so switch that and if I want to or you can make it how you want you can also change the label here like it's hard to tell because the handles over top of it but the abbreviation for miles in this case that's suggesting mi I could write that out like if I wanted to put miles instead that will change and put the unit's there I can also change the number format you can change the number of segments like for me I typically just want one and then I will adjust and see if I can sometimes I'll try to get this a really nice round number like show one mile instead of 0.75 but you can play with this oh there this is how to change it so if I want just one mile I can just do 1.0 and then my scale bar will be a nice round zero to one miles I can change the color of the fill I can change all kinds of stuff about it but you get the idea that's how you can work with adding a scale bar to that and again you can get pretty fancy with this I just I personally tend to keep them pretty pretty simple but depending on what you need or I'm the style for your particular maps like if you're if your office for example has a map style you can actually set a lot of those things you can also add North arrow so you can put in the North arrow you can change what this is I again I tend to go with super simple Alice also fall into the camp of folks who tend not to put North arrows when North is up if I think people will know like if I'm doing this map for the city of San Francisco they know what the orientation is looking at the streets so I wouldn't necessarily spend the space on that but I can also add things like if I needed to add for some reason if I needed to add like different shapes to it like if I wanted to highlight something with that I can build those things in and there's a lot of stuff you can add with this side panel but we don't need to go through absolutely all of it now you know that it's there you can play with it and there's also some really good tutorials in the the QGIS training manual it's got some really good more information about how to do all of this so definitely check that out too if you're interested in learning some more about that so I have made a fairly cluttered not super great map but at least you've seen now all of the different things and then you can also look in the in the written materials for the workshop to see some examples of you know what you can do with this and play around with your own like try this you know working on your own mapping and adding things as as needed okay so I would also add that I've got links in the written materials too to other places like if you want to download some more background data layers like natural earth data or project line work or gadem are good places to get for example like coastlines and things like that but it's been south of the city of San Francisco to finish that out and not be a cheater and just cut it off at the edge of the data but so that that's how you make a map and again it you can get pretty sophisticated with this and by picking different options and things like that and I actually do a lot of my my cartographic work with QGIS I'm setting it up and then if I need to do something super polished I'll actually export this to Inkscape and work with it there so I guess that's a good reminder I should show you how to export it and then click Save because I see the Save button up here at the top you have again your your menus might be in a slightly different place but you have a couple options for exporting you can export this as an image an SVG or a PDF and for the most part most people are going to want the export to PDF or image if you use SVG that's handy if you want to bring this project into an art program like Inkscape or adobe illustrator the SVG will export all of the the line work as as lines with with nodes at all of the bends on the line and stuff like that so you can actually edit it in an art program but for the most part if you're if you like the way that it looks and you want to put this into say a report or put it on a website or something like that and you want a static image you can export it as an image or a PDF depending on you know your audience what they need so I'm seeing some questions coming into the chat so how do you add a second Matt to show different layers than the one we've done oh that that's a bigger question I can show you can definitely add you can definitely add another map image if you click Add map and draw a box it will default to what is in the in the map layout so in in the main QGIS window and there is a bunch of tricks you have to do with turning on and off what is locked so what before I would do that if I want to add another another map window I would make sure that my map is selected and then in layer properties I would want to lock my layers and then lock the styling for the layers so I'd make sure these two things are checked and what that's gonna do is it's going to make sure that I don't change anything in what I've currently got because if I don't do that and I go and I turn things on and off or change the styling in the map layout or the sorry the map canvas and QGIS it's gonna auto update here so locking the layers and locking the styles is going to make sure that this stays put when I make changes so if I wanted to add a new map I'm gonna add map this is gonna get really cluttered so I apologize so maybe I want an overview map I'm gonna put this here for now and it's going to make a new map and it's gonna start rendering in a second it's being a little slow but ideally okay there we go so now you can see it's like a mini version of what I currently have if I go to my map canvas and let's say I turn off my streets and turn off my trees and maybe I want to do the DM let's just do that that's easy so I've got my DM and now I come over here I'm gonna have to refresh this and so now I've got my DM in the little window maybe let's put this here so it's actually on the page but now see if I hadn't lost the layers of the other one it would update that and everything would just be the DM now I've made a really atrocious looking mat but at least now you've seen how we can add different layers and I think the key is making sure you lock your layers and the other one before you add a new map sometimes what I will do actually is I will set up a a print layout and make a copy of the print layout and then put the things in the two print layouts in like oh I'll make this layout was just one map and then a placeholder for the other one and then I'll make the same layout but leave this map blank and update this one and export those separately and then join them up in an art program sometimes although that's a lot of work sometimes that's easier when you've got a lot of updates that might happen like if someone's making tweaks to a dataset while I'm working with another researcher or something sometimes that can be helpful but you really have to if you do it in the way that we just said you have to have a really good idea of what you want to do set what you're finished and then set it for good and then move on to the next thing because going back is going to be challenging so the question is can you go back to editing the first amount by unlocking it yeah you can if i unlock it now though and and then I hit refresh it'll become the DM so I have to put everything back so that's why I say it's it's kind of challenging the workflow itself is sometimes challenging you really have to know what you're going for a leg this is what the main knots gonna look like I'm gonna finish it exactly the way I want it and then I'm going to switch to the next map to work on that's why sometimes I'll do them in parts so that I can kind of put them together and I might have them in two separate projects even if I know things are gonna change around a lot sorry Giselle Leah said that she was gonna answer that I beat her to it sorry I was looking at the chat when the question came in so for those of you on on streaming on youtube we again we've got folks in the zoom session that are asking questions on the chat so that's what I'm responding to okay so any other questions about this again we could spend this could be as own workshop in itself and there are going to be some talks like I think Gretchen Peters in stock later today is going to cover some some map examples so you definitely if if this is super exciting definitely check out her talk again all this is going to be recorded too so you can if you miss it today it'll be on the QGIS North America YouTube channel to check out yeah so Jason's saying you could use the group layers feature to turn things on and off that that's also true you'll you'll come up with your own workflows for making these if you're doing a lot of map work you kind of have a workflow that you tend to go to and you know the first few that you do is is more challenging but as you sort of figure out what the order is that works for you to do things and it'll go quicker for the next ones okay so again we're at the end of a section and we're about at the end of an hour so I think let's go ahead and take another quick break so I've got on my my clock it's about five til the next hour so let's meet up let's take a quick break and we'll meet up on the hour so here in the city of Davis it's almost 10 o'clock so let's meet back here when my clock says 10 and we will finish this up about one more section ago so we've got great timing we do some spatial analysis when we come back so go stretch go get a snack whatever it is you named for your body is but definitely move around have been sitting for a long time so we'll see you back here in about five minutes you you all right so if you've wandered off hopefully you're making your way back to your computer screen I appreciate you guys sticking it out this is a really long time to sit at your computer and listen to someone demonstrating software so thanks for hanging out with me today we've got one more hour scheduled on the workshop we've got one more section of the planned material to go through and then we'll do if there's time at the end of that we'll do some QA and asking of stuff so again thanks for sticking it out well this is our last or last section to get through and we've made a lot of good progress today so what I'm gonna do coming back to my QGIS project I'm just gonna go and click Save because that will star up there and the corner told me I had done changes and not saved it obviously this map is not finished but I think for our purposes that's good enough we've seen some important things for the layout I'm gonna go ahead and close that again I can always get back to it if I need it so the next thing is the last thing I want to show you is doing some spatial analysis again we're going to be working with attribute tables and with the vector data but the purpose of this is to do a select by location analysis where we're going to look at the locations of two different types of things in our vector data and start to do some analysis with that so again this is building on some of the things that we've been learning already today but taking another step forward to do a little bit different maybe a little bit more formal analysis rather than just visual okay so what we're gonna be working with is where I'm going to turn off my DM I'm gonna turn on the seismic hazard zones and I'm gonna turn on my street trees again so what we're gonna I know there's not a lot of contrast in that right now but we'll fix that so what we're gonna be looking at now is another kind of plausible scenario kind of situation where we're going to be trying to do some analysis to answer a question so my question here is I've got my tree data and then I also have these what's called seismic hazard zones so the city of San Francisco has outlined these areas of the city that in an earthquake or a seismic event these are areas that would be suspected to have pretty heavy damage so these are places where there'd be a lot of shaking for those of you in California you're very familiar with the term liquefaction which is the process that happens to the ground when you have earthquakes so these are areas that are outlined that are a little bit elevated danger for in an earthquake situation so I was thinking like okay I've got trees and I've got seismic hazard zones so um what I want to do is take a look at where where are their really large trees that coincide with seismic hazard zones so earlier we looked at you know trees by species but also our street tree data has information about the tree size and where that is all open up the attribute table if your computer's having a hard time loading this file don't open the attribute table just show it to you so and mine's gonna take it a second to open this is a lot of data but there is a column in this table that has it's called the the DBH column and this is it stands for a diameter at breast height that is a way to measure a tree so what you do is you figure out how how wide is the tree about four feet off the ground so you think about chest height and that gives you a measure for the size of the tree so between difference between individual trees of the same species we can compare size so height might not actually be diagnostic but the trunk width actually is so I'm looking at my street tree data attribute table and so we've seen a little bit of this like here's our Q species column we have other information about this but we have this DBH column so this DB H is in inches and I know that from the metadata so I'd have to know someone would have to tell me what the units are on this but I could probably guess knowing that this is City of San Francisco is probably isn't-- meters because a 15 meter wide tree is not gonna happen so I can guess that this is probably inches it might be centimeters but the metadata tells me that this is inches and that's pretty common for urban forestry in the u.s. to be in inches you can see that there's some nulls in there for this analysis I'm not gonna worry about it the fact that there are knowles but we're just gonna work at the data that we have but obviously if I was doing research I'd want to find out what's going on with that why there no make some decisions but for this analysis I'm going to decide that I don't care about the nulls we're just not going to worry about those and work with the data that we have so I'm going to define a large tree as a tree having a DBH of 36 inches or higher so that's three feet across about a meter that's pretty big tree like we're thinking about the the width of the trunk is that big and so I would be concerned if that tree is in a seismic hazard zone I might want to know that because I want to make sure that tree is really nice and healthy so that I wouldn't be concerned about it in an earthquake so I want to do this analysis I've got I'm gonna go ahead and close the attribute table for now so I've got my trees right now is just showing canary Pines but we know we have all the trees in there and then we have our seismic hazard zones I could potentially I'm gonna turn on all the trees just because I can if your computer again is having trouble with this don't turn them on I'll show this to you and then we'll do the analysis and this is where we're gonna actually pare down this table and make it smaller so that'll look better but so this might look familiar we've seen this if I'm trying to count the number of trees and trying to count the number of big trees in these areas I don't want to do this my hand I really don't I'm gonna figure out a way to do this with a work flow here that does the selection and things like that with the help of of the computers tools with the GIS tools to do this obviously like if I want to do a bunch of this I would actually program this and like order Python but I'm if I'm just doing the analysis once doing it in QGIS makes total sense okay so what we're gonna do is first thing we're going to do is pair down the street tree data set because this is pretty large so okay so first thing we're gonna do is we're gonna I shouldn't have closed my attribute table let's open up our attribute table and we are going to do our attribute selection just like we did before when we're working with the streets we're gonna go through the same process but we're gonna do this with the trees and we're gonna pick out the big trees and then while this loads I'll preview that we're gonna we're gonna save the big trees as their own file and then we won't have to worry about the CSV that's taken forever to load so waiting on that attribute table to show up there it is hello attribute table okay so again what I want to do is just like we did before no it's still thinking about it where'd you go apologies computers done so good so far okay so what we're gonna do is we're gonna click on this select features using an expression just like we did earlier today so I'm gonna click on that remember it's the little button that looks kind of like a Sigma for a little yellow box and so just like we did before right we've done this two other times today for different things I'm gonna click on my fields and values and remember earlier we looked at the queue species column because we want to find all of the Canary Pines but now we want to use this DBH columns so that DBH and then now instead of equals I want to do greater than or equal so I'm going to type in the greater than symbol and then the equal symbol so QGIS will interpret this as being greater than or equal to and then I can see in the preview here in the middle it shows me that the DBH column is numeric has a 1-2-3 icon so then that means I know I can type in just the number 36 so this is the time where I would not want to click on all unique because it could be anything and there could be thousands of things in there and that would take forever to load so don't do that so we're going to type in DB H is greater than or equal to 36 in this case we know it's inches because we have the metadata but again we're not gonna put in the units in this interface it just has to know that okay so once I have that set up then I am going to select the features and hopefully it will select all of the trees that have a diameter of 36 inches or more it's gonna take it a second cuz I remember this is a pretty big data set so one thing I can do if I want to just see the selected ones I can use this tool or I can use this one which moves them to the top it's going to take it a second to do that I can also see that there's a selection that Oh perhaps I need to clear out my rules sorry my computer's being a little slow now I have this big data set well I should do that sorry I'm thinking to myself out loud so I'm trying to close my interface and it's gonna be a little slow I imagine some of your computers may be doing this too just taking a sec extra second to load when this comes back I'm going to remember you hit the Save button so in the meantime while we wait for this to load if anyone has questions go ahead and type them in the chat um I see we're doing some problem solving and the the zoom chat which is great it's gonna give my computer another hopefully a few seconds to figure out what it's doing you you you you you you okay so that there we go so now it's showing me it has selected it looks like about four thousand trees from our very large collection of trees and I hit that button this one to move the selection of the top just so I can see that I've got a bunch of things selected and if I scroll down it'll eventually get to things not being selected but um that's great I'm gonna minimize that in theory so we're about to UM we're about to subset this data set and then hopefully computers will start behaving a little bit better I'm just trying to minimize that okay so and this is still being a little bit slow this is normal with this data set it's just really big so sometimes it does take it a second to figure out what it's doing but so I'll preview for you the next step we're gonna do is we are going to take the selection that we just made from our street trees and we are going to save that as its own vector file so we're gonna save it as a shape file there are there options though for vector data shape files probably the still the most common data set um but because it like you saw earlier today a shape file is so I just click Save because my interface came back and I want to save caught so shape file comes in it has that all those files that have to stay together what I referred to is the shape file entourage earlier today that can be a little troublesome for for data management you have to keep everything together and if they get separated then the whole thing stops working and so I actually prefer geo package which is an open format it's one file so it's easier for data management I just have to keep track of one thing it's an open format so that's nice and the other option is geo Jason which is text-based which is really handy for for example if you need to store stuff and github it does really well there but it can be a little slow because it's text-based so it's kind of like how the CSV is slow here ok so hopefully by now I figure your computer and my computer started responding again so let's solve this problem of having this massive CSV let's make it a little smaller so I'm gonna click on my street trees in a little layer panel I'm gonna right click and I'm gonna click on or I'm going to hover over export so it opens up the next menu and then I want to pick the option for select save selected features as the only difference between this option and the one right above it is a checkbox which you can check once you've opened the interface so don't sweat it if you pick the wrong one um so again I'm gonna pick selects save selected features as so the second option on that menu and export move it over on the screen that you can see and so again my format options I can pick file which we are gonna do today but you have all these other options for various things but I'm like like I said we're gonna do shape file just cuz that is probably the most common for the name we're gonna give this file a name we're also gonna tell it where its gonna live so I'm going to click on the dot dot dot button because this will let me navigate to where I want to put stuff and that way I know where it's saving so I'm gonna put it in my my data with my workshop data um and I'm gonna call this file large trees so it's gonna be large trees SHP and I'm saving it in the folder that I want which is my workshop data you can favorite wherever you want but so I'm gonna put mine ok so that path is now in in that um that text area which is great for the CRS is guessing that it should be wgs84 which is correct that's the one that we started with let's keep it there if I needed to change this I could click on the CRS button and pick a new option or the drop-down has the ones that I've been working with yours will probably be smaller if you haven't used QGIS before again you can change your character encoding we're gonna leave it utf-8 here's the important part this checkbox for save only selected features so what this does is whatever we have selected in the attribute table is now going to become a new file and the rest of it we're gonna forget about will still have the CSV with all of all the trees in it but the new file we're gonna make is only going to have the big ones so we have some geometry options I'm gonna leave the defaults the rest of this looks fine for now you can also I'm going to expand this fields option if for example you wanted to only export some of the columns and get rid of others you can do that here by unchecking them but we're gonna leave the defaults and then the last part here just to make life easy there's this option for adds saved file to map what this will do is when it finishes saving the file it's gonna put it automatically in our map interface so we don't have to go find it and so I like to do that when I'm making data I'm gonna use right away it's gonna click OK you're gonna uncheck that though if you need to export it and you don't need it in your map but you don't want it too low you can uncheck it so got a little progress bar at the bottom so it's telling me task is complete whew that's exciting so the first thing I'm going to do now is I'm gonna uncheck our big street trees and just have my large trees showing I'm gonna click Save because I'm remembering to do that now it kind of looks like fall colors in my mouth again these are just default colors it's picking them somewhat at random so something's asking is it okay to put spaces in your file names I would not do that and the reason I tend not to put spaces is because it can get certain tools can get confused by a space and then you'll have to use an escape character and it will save you a lot of headaches down the road if you just don't put spaces if you want to put a space and you know you shouldn't you can use an underscore instead or sometimes a dash that can be another good option but I would avoid spaces because that tends to fall into the category of special characters that can cause problems later on some tools like plugins may not be able to understand what the spaces and they won't be able to open a file so generally generally spaces there are no for data management all right so hopefully everyone has gotten their large trees now in its own file so it should look roughly like what I've got um so you can see they kind of we're looking at spatial distribution of large trees they tend to fall along some of the major roads they probably been planted for a really long time and so now we can actually start to see if we're concerned about big trees in seismic hazard zones we can see on my maps the seismic hazard zones are orange there's probably different color and the trees that are showing up there are some that are in these areas and some that aren't again we don't want to do this by hand so we're going to figure out how to do this in a more repeatable way I'm using some of the selection tools okay so again to repeat we've selected out our big trees we say that is its own separate file because that will make our life easier dealing with less trees so now we're going to try to figure out which of our trees that we have remaining in our data set which of them coincide with the seismic hazard zones again I could zoom in and I could select all these by hand but I don't want to do that one it's going to take a long time it's gonna be tedious and - I'm probably gonna miss a few of them and I don't want that so I'm gonna do this with a tool that's gonna do this for me and figure all this out and so I'm going to come up here we haven't worked with the menus at all yet I'm gonna click on my vector menu so remember we're dealing with with vector data this is why I went over raster versus vector in the beginning because we all need a refresher and also a lot of interfaces depend on you knowing the difference so work over the vector data and then I want to come down to the research tools option and I want to pick this option that's select by location so again vector menu research tools select by location and all this also if you want to review this is in the print materials as well okay so I've got my select by location interface and you can the way we're going to set this up is it kind of reads like a sentence so what I want to do is read through this so select features from in this case I want to select features from my large trees and I want them to intersect with not large trees because that's silly that's the same thing I want to pick seismic hazard zones so I'm gonna select my large trees that intersect with my seismic hazard zones there are a bunch of other options in here like contain equal to overlap and you can read about if you google that you can read about specifically what the the specifics are of each of those options but intersect basically means that the tree is sitting on top of or coincides with on the seismic hazard zone so you can think of it as if the tree is inside that that polygon in some way shape or form it's going to be selected and then if it's not over a seismic hazard zone it's not going to be selected so we can the other option here we can if we had a selection already made for example we could add it to the current selection there's multiple options but we want to create a new selection mainly because we haven't done any other selections yet but just know that's an option so they can click run and the result of this should be trees selected that fall within our seismic hazard zones I'm just previewing that that looks good so I'm going to go ahead and close this so I have all of my the trees that you know all of these points that look like they're over the orange blobs are now turned yellow because they've been selected the ones that are not over the orange blobs are still Browns they're not selected if I look at the attribute table which should load quicker than the one with all the trees you can see there are some selected and some not which is great so it looks like we have 432 trees that we want to be concerned about and then the rest we are not concerned about so ok we made a selection but remember we talked earlier about how we don't want to rely on selection for just for making maps if we need to communicate this beyond just exploring it for ourselves we need to figure out a way to make this visible in some way so what I want to do is in this case now that I've done my selection I want to actually add a column to my attribute table for my large trees that says whether or not it's in a seismic hazard zone and again I could because these are selected I could make a new column and I could go through manually and add some indicator for each of these I can do it by hand but I don't want to do it by hand there's 432 of them so let's find a way to do this automatically and the way I want to do it today is with the field calculator so you can click on this button that looks like a little abacus if you know what an abacus is otherwise it just looks like little colored dots and so I'm gonna click on that and again this kind of looks similar to what we've been working with before a lot of these interfaces function in a similar way so I'm if it's looking familiar that is a good thing so what I want to do is make sure that this box is checked up at the top for only update the 300 and 432 selected features this is because I only want to indicate the ones that I've selected I'm gonna make a new field so I'm gonna make a new column and then I want to give my column a name so my column is gonna be called I'm gonna call it earth cue zone with shape file you're limited in the number of characters you can have in the column name that's not as much an issue with other formats but because we're going to shape file it have to be careful not to name it something too long or it'll get cut off and so that's the name earth cue zone because for me that will remind me oh this is earthquake zone but you can name it whatever you think will be helpful to you given the limited number of characters for the field type I don't want to have whole number I believe I want to have text for this because I want to put yes if it is a tree in a seismic hazard zone I could do zeros and ones instead but I've decided to use yes and no because that way we're a hundred percent sure like earthquake zone yes earthquake zone no that makes sense to me so in this box what I want to do is if it's selected um I wanted to have the word yes so I'm putting single quotes wrapping around the word yes and what this is gonna do is if it's selected yes it's gonna go in the column if it's not it's just gonna leave it blank and you can see the preview here is the word yes for the things that are selected so that's all I need to do I'm gonna go ahead and click OK and it'll take it potentially a little bit of time mine went pretty quick right now you can see if it's highlighted there earthquake zone earth Qzone column has a yes if it was not highlighted it has null so that's where I'm gonna leave this for our analysis and we can now oh one thing we need to do and time remembering is when we started our our field calculator it automatically enabled editing so it turned on the editing mode so what I want to do is before we finish this out I want to go ahead and click the Save button this saves the edits so this one is specific to the attributes that we've been editing so I'm gonna save my edits and then what I want to do is the button next to it I'm gonna toggle the editing mode off so this means that I won't be able to accidentally edit any more so if I double click here it won't open this field up for editing the way it was earlier when I was clicking around so now if the editing has been saved it's turned off so it's safe I can't edit anymore but I've got all of my big trees in seismic hazard zones marked yes so what I'm gonna do also is I'm gonna now we've got this saved in the attribute table I don't have to keep my selection anymore I can turn off my selection and now if I wanted to so they all just look like trees now but I could come in here and I could say oh I want to categorize it do my symbology based on the last one Earth Qzone classify and then I've got yes and so this is a situation where the all other is helpful taking a second to do the figuring it out but eventually it should change them to red is yes and right now the default blue is gonna be no but so so we've got this this is a way to do your spatial analysis using a selection a series of selections and then save it for later use I'm not sure why it's not classifying but that's fine we don't really need that right now but so if I was going to make a map like the one I have in the workshop materials now that one doesn't do the the different colors either but that's fine we can do this visually or we can have it do our our categories the way that we've got it I'm not gonna troubleshoot this right now so that is I believe that is the list of things that I had planned on showing you today for the workshop if you scroll down to the very bottom of the workshop materials you can see some more links too for example the QGIS documentation I highly recommend looking at the training manual it's got some good step-by-step instructions for how to do pretty much anything that you would want to do in general the you know for more specific stuff you'll have to do some more googling or poking around in the interface but for the the typical GIS interface kind of stuff the training manual has excellent resources for showing you how to do stuff and then the link to the open source geospatial foundation has links about news and projects and things like that may might be interested in all right so we've got um you know 20-30 minutes left in the workshop so what I'd like to do is ask is there anything that you guys want to see demonstrate or any questions that you have about QGIS and how to do things okay so I have I see some questions about what types of files it can open for the proprietary data spatial database formats you can open them I would I'm not going to demonstrate how to do that right now cuz I would have to have one at hand to show you but there are some good workshops online that will show you or tutorials type things online that will show you how to open those and there's a couple extra steps that are a little bit different from how we opened up the raster and vector data today but it it is possible to open those is it possible to import an MX d file on there is a group that's working on that I'm not sure what the progress is on that project but there is that is in the works to open MXD files and import those I would caution you though that generally I want to pick my tool that I'm working with ahead of time and it's really not that big a deal to sort of remake a map sometimes I don't know basically I wouldn't I wouldn't hold my breath on on that one that can be a bit of a challenge to reverse engineer things that are proprietary okay so someone's asking about labeling capabilities yeah so let's do some labeling um let me let me just poke at this seismic hazard zone I'm Oh bummer it just has IDs I was hoping that I had some kind of label and let's trying to think what would be good to label maybe if i zoom in on the trees it will be easier to label these I'm just trying to think what makes sense to label and what's not going to be just an absolute mess so I'm going to zoom in on a section here of some of the trees and maybe we'll do some labeling with those so let's see if I want to do labeling I'm gonna make sure that my large trees are selected because that's a no-no label and then in my layer styling panel I'm gonna click on the labels tab so you can see the default is no labels but I want to pick in this case let's do single labels you can also do rule-based labeling which is really similar to like the rule-based symbology that we worked on where you're gonna write a rule that only labels for example if I only want to label Canary Pines I could use a really similar query to what I had in the symbology but single labels for now so you can see the value that it's going to be working list of the column right now is tree ID let's label it with species instead and let's see so I'm going to click apply that is atrocious but at least now we've seen that we can label it we can always refine as we go I'm gonna pick a font that makes my brain happy something cleaner so I tend to go on I tend to and the live update this so it just makes the changes so you eventually the more your cartography you do the more you'll kind of have like fall backs and that just make you feel comfortable and you can always go wild later but so that I'm kind of running through my my checklist mental checklist of how to fix things okay so that's okay and this is one of the tricky parts about why if you're making a database like this you might not want to put so much information into a column because these make for kind of crazy labels but so there's that that's labeled if I wanted to I could in this value option so I could just pick a column or I could use the expression dialog which again looks really similar to the selection stuff that we've done and I could work with that font and I heard that with a text and I could cut it off well one thing we could do that might help I'm going to click cancel out of that is there's a bunch of tabs within the labeling so I could looking for the one with the wrapping I never remember where anything is I just fished through it until I find it so my wrap character here this tells it like wrapping means I'm gonna put a return carriage so I'm going to put a certain point within my text I'm gonna put the basically make a new line and so make instead of one one line I'm gonna have two lines here because they have this repeating character I might have my wrap character be the two colons and so now you can see it's maybe a little less visually busy and then I might make my line height a little less so they kind of group up a little bit more this is already starting to look better to me it at least is grouping up one thing you'll notice is with the labels is when you have a bunch of points that are really close together it's not labeling everything because it assumes that that's too busy you don't want to see all that you can actually have it there's an option in here to label everything again I don't remember when any of this is even from day to day I just keep looking through the menus until I find it it might be this one here we go so show all labels so on the very end option tab here show all labels this is gonna make a ton of text but again if I am if I'm doing this if I'm making a map for someone and everything needs to be labeled I will have it label everything and then figure out how to deal with the fact that it's doing this like I might need to zoom in I might need to do leader lines which is an option you can there's a menu that you can use this one up here to actually move the labels by hand so I might try to untangle some of this and put leader lines on them but yeah I probably wouldn't make a map with this labeling the names this way because that's just a lot of text but you might have to so hopefully that gives you some idea of how to do labeling obviously there's a lot of intricacies to this that again could be its own workshop and I think we'll probably have some I think I should know this but I think that there may be some options to see that and also there's some good YouTube videos out there as well to get some more information about that how okay so one of the questions how do you push a map up to the web for a webpage that is definitely its own workshop but I would recommend looking at the QGIS - web plugin um that's really helpful maybe I should show you plugins time since we've mentioned it twice now so the questions about how to do the web mapping stuff is definitely something to look up on your own I can't I don't have the capability to show you that right now it's something I've done but that's a lot more detailed than I'm prepared to demonstrate but just know you can and there are tools so let me show you plugins really quick since we've mentioned it twice so um up at the top of your your menus for QGIS you have this plugins menu if you click on it and you click manage and install plugins it will open up I your plugin manager and what plugins are are you can think of it as like added pieces of software that you don't necessarily want them all turned on because you may never need them but the ones that you do want you can turn on and select to have those available so one plug-in I would recommend everyone get maybe not install it right now because you're trying to you know livestream stuff but for later shoot let me look at menus popping up I don't think you guys can see from zoom yeah I'm gonna close this I want to quick map services that's the one I want and so I'm going to go back to my plugins so I'm gonna search for a plug-in called quick map services so as I'm typing in the search box here it's starting to filter and this one called quick map services is really helpful it has base maps from various different groups liking it OS M you can get google satellite stuff like that mine's already installed so my interface will look a little different there'll be a button here too in stall so you could do that like I said maybe not right now if you have like a slower internet connection save that for once once we finish here in a couple minutes but so you click install and then once it's installed we're gonna click close and then it shows up on my web menu so I have quick map services when you first start it up it won't have as many options you can go to the settings and I would recommend and the more services tab get contributed pack this the reason that it doesn't load everything is because you have to agree to the Terms of Service so like for example google has a it's not a completely open like the data isn't completely open you have to agree to use their Terms of Service so just be aware of that but it's really helpful so if I just need to like all the times I want to check and make sure data is showing up in the right spot I'll come down here to OSM turn on standard OS m and then I've got OpenStreetMap data in the background that's a tile service so that's that's an example of a plug-in so it's it's things that you know maybe your colleague will never need this so they don't need to have all of this loaded but I can turn on bits and pieces of this code through plugins to get the tools that I specifically want or need for what I'm working with and you can also one of the advantages to having an open project like this is you can make your own plugins so if you're familiar with Python programming you can make your own plugins I have made my own with in collaboration with a colleague that that does basically it works with citation software to turn your citations into mapable objects so you can do a literature review and map it to find out the spatial distribution of studies but um so I mean normal people wow that just changed all my labels and it turned off the labels on this who's really distracting but so like normal people don't need that plug-in they don't want that capability turned on bogging down their computer but if you do want it you can get it as a plug-in and you can have that capability so plugins are great for that I'm adding tools to things you might need the other place you can look for tools is in this processing toolbox so if I click on processing and click on toolbox I have these other things like for example I mentioned grass earlier if I wanted to do some raster processing with grass I have access to I'm pretty sure all of the different raster algorithms that grass does I've got vector stuff so if I wanted to access grass through QGIS I can do it through the processing toolbox so add a capability there for four different things as well as things that are in your menus up here this is why I mentioned that QGIS was kind of extendable there's a lot of things you can connect to it to make it do other things that are useful to you so I'm looking at the chat so helpers feel free to just jump in and tell me if there's something you think I should answer specifically that's super important um somebody asked a question about sharing Maps and I was looking up if there's an equivalent to I know in ArcGIS you can do the map package which saves having to basically to share a map you need both the map the QGIS project file and also all the all of the files that you're using but is there a way to package that like there is an ArcGIS um normally I would say no but it looks like Lea you have a follow up that Kurt says it's possible with the I'm not sure if I'm supposed to spell this out SL why are plug in or if I'm supposed to make that into a word but that talk is going on today actually later today so that might be a good thing to check out I I'm gonna be running the behind the scenes stuff but I'll definitely pay attention to that because that sounds really helpful um generally I would say though in for good practice and I tend not to give people my project files so much I would rather this is just my personal preference like I would rather finish the map for them or and create their own file I find sometimes it can create confusion but definitely you want to be careful if you are sending people the project file like the qgz file in order to open that you do need to have all the data come with it and it needs to be structured in the same way just the same situation with the proprietary software if you're using like every products everything has to come with it so just be aware of that but generally I'd say I think it may be the the landscape on this is changing but I try not to send people project files they want to send them a finished product more than a project file but you know depending on if you're working in a group that may be a different situation generally I would say if you want to share a map and it's a you know basically you want them to see a certain product I would say go ahead and make a map in the print composer and export either an image or a PDF and give them that versus especially if you have a colleague who's less familiar with GIS if you give them a project file now they have to work with the GIS and that may not be something they're super comfortable with so I would prefer personally to send people a finished static map or put it on a website or something that they can if you wanted to make an interactive website with the data you could do that too you I'm looking is it possible to load data that you use for the finalized map sorry I think my skipped is it possible to load a photo of an old map and disguise the boundaries ie fields so I Tony of UEFA's oh did you ties oh sorry digitized boundaries sorry it's been a long time so okay I'm just gonna whine a little bit here I I've been up since like 5:30 this morning my time so my brains a little getting to the end of its capabilities I apologize I can read so ok can you take a photo of an old map and digitize the the boundaries yes you totally can there are gonna be two talks in this conference next Friday so this conference is happening this Friday next Friday and the following Friday so three Fridays in a row so basically the middle of the the day on next Friday we've got to workshop or key corner in workshops to talks in a row my talk and then the one following my talk we're both going to be talking about how to use old maps for for digitizing so I'm specifically specifically going to talk about how a project went looking at really old maps from the mid 1800s for the Central Pacific Railroad so we'll talk about that but basically the process you're going through is something called geo referencing and you can do that with your raster menu there's this geo reference or plug-in you may i it used to be a plugin i think it might be standard now but if it's not on your raster menu who can turn on it with the plugins manager and that's the tool you're going to use and I would recommend that's not something I can demo really quickly today in the time that we have but there's some really good tutorials out there on how to use the geo-referencer but that's the process you're gonna go through so you'll load in your unreferenced map you'll match up points on your image that's not geo reference to your base map and then you'll run the process that turns that into a spatial object so that that's a pretty common task but definitely check out the the two talks that are gonna be happening next week on Friday for that if you want to take a look at the program schedule that's all in the QGIS us website so hopefully that at least gives you some idea that it is possible and again like we didn't do very that's raster data we didn't do a ton of raster data today but all of this is very much larger than we've been able to cover in just the intro workshop so some yeah Leah says geo geo packages are a really good option and you can simulator formatting with it definitely we're we're moving towards we're moving away from shapefiles for for vector data even though that's been by far the most popular and most shared option I imagine if I was tweeting this on Twitter that you are the shape file account would now be harassing me so yeah we are we are starting to move away from from shapefiles towards more open things like geo packages that have a little bit more capability that you want um so I would I would definitely consider that and there's a lot that's been written about that too so if you want more details I would highly recommend looking doing some more research on that I definitely I definitely would in my own work I when I can I do tend to use geo package or alternatively geo Jason depending on the situation I tend to not use shapefile as much anymore just because like I said it's a data management issue when you have like so I'm gonna show you my my files here um if I go into my workshop data I mean you've all seen this because you have this similar structure I have all these files but there's really only three in here right it would be much nicer if this was just large trees geo package size and hazards that geo package instead of having to keep all this straight so I would definitely encourage you to work with with some of the more open formats now instead of shapefile but for accessibility with a workshop I wanted to use something that people were more familiar with you know sometimes it's better to learn one thing at a time then dump all kinds of new things on people so how do I save a project as a geo package so I think you need to save individual data as geo packages I would definitely go to the workshop or the talk later today about saving things with that that new plugin this s Lyr plugin it's going to happen in a couple of hours so I'm going to click Save and so that's I think let me pop over to the YouTube group and let's see if there's any questions there I know that they've had a lot more questions I think moving on I think Kurt's doing a great job answering them I think this is too much to read right now maybe I'll pop over there and answer some questions later after we finish up so also you might want to hear I'll link to the YouTube don't try to stream this all at once but just so you've got it the YouTube I just sent that till the end sort of everyone let me try again to everyone and the chat in the zoom session and go ahead and take a look at the questions that are going on over there as well they they're having a slightly different discussion on the YouTube chat and some different answers as well and Kurt's over there answering and he I think has more experience with this aspect of of qgis the more you get into this Memorial realize there is so much stuff here that no one person is probably gonna know every single thing and so that's a good place to look right now also you can join the QGIS mailing list from OS geo or the QGIS us users group mailing list if you're in in that geographic area to ask questions and get help there's also a really good community on Twitter if you're a Twitter user there's if you use the hashtag GIS chat that usually get some eyes on questions there and again the documentation for QGIS is great I'm always referring to that and sending people there when they're asking for help so check that out I see Lea has an answer to the question of how to create a geo package layer so she says I'm just gonna do the instructions she says I'm gonna go to layer create layer there's a second one on the list um uh a new Geo package layer so that's pretty simple and then fill out the interface and you're good to go all right so we've got we're just about finished up with time here I want to thank you all for joining me and for those of you who stuck it out for all four hours give yourself a big pat on the back here on the west coast it's just about time for lunch so if you have not had your midday meal go have a snack at least I really appreciate you guys hanging out with me for four hours wow that is an accomplishment and I hope we've learned a lot today the materials the written materials will be on the github repository and like I said I just update them with new versions of the software so they'll be there for you to refer to and ask questions you know of the various forms we talked about so yeah thanks again I'll hang out here for another minute or two answering any any other questions that come up but go enjoy the rest of your day and move please the four hours of sitting with minimal breaks is is it's definitely time to move after four hours all right thanks everyone I'm gonna go ahead and end the session now and thanks again to the YouTube folks that were in the overflow parking they are watching the streaming this has been definitely ex
Info
Channel: QGIS North America
Views: 42,330
Rating: 4.9438376 out of 5
Keywords:
Id: -7v5qfJYWxA
Channel Id: undefined
Length: 229min 40sec (13780 seconds)
Published: Fri Jul 17 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.