ATLAS Maps (Map Book)in QGIS : Data Driven Pages # QGIS Tutorial.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] [Music] so [Music] hi guys welcome to this qgis tutorial in this video we'll learn creating atlas maps in qgis you can subscribe to this channel to follow all my previous useful geos tips and tutorials if you like what you do here and you want to support this channel you can join our patreon i will provide a link in the description below and atlas is a collection of maps they usually contain many pages of maps that are related and organized in a book-like format qgis has a tool called atlas that can help you create a map template and easily publish a large number of maps for different geographic regions so let's go to kgs and look at today's exercise in today's lesson we go to a country called mozambique so i've already loaded some layers here in qgis i'm going to activate the administrative boundaries of mozambique this is mozambique a country in the southern part of africa and i also have some health sites for mozambique and i have also created a map index grid that you're going to be using in this exercise i'm going to just zoom into our layers and look at the kind of data that we have so we have some polygon data and some point data for the help sites so i'm going to just look look at the attribute table of my data i'm going to open the attribute table and i'm going to name these regions according to their their names so i'm going to use name too so i'm going to go to properties then labels i'm going to say single labels and i'm going to use mean too i'm going to make sure that the text is a bit bigger i'm going to draw a buff around it and placement is just the centroid that is okay and i'm going to click on apply okay and i have named my regions i'm also going to look at the attribute table of the health sites and you can see they have the names and their they have their amenities so their clinics pharmacies i believe hospitals and all that so we're going to also symbolize our health sites using the amenity so i'm going to go to properties again symbology instead of a single symbol you're going to categorize these using the amenity then i'm going to use random colors then click on classify and they have actually the clinic the dentist the hospital pharmacies so i'm going to click on apply okay so we have the different kinds and actually the clinics are the ones that dominate this area every atlas is based on coverage layer so for this exercise i'm also going to add another layer here it's going to be our map in our coverage layer so i have created a map index grid here and it contains 26 grids so i want to have 26 maps covering the whole of this area you can actually even use the administrative boundary unit and then use the small units as your coverage layer that is actually going to be the second way i'm going to show you how to create an atlas using the administrative boundary but for for the first exercise let's just start with the map index screen we're going to just follow the same same process of making a map we're going to go to the composer so we're going to go to project new print layout then i'm going to call it mozambique then i'm going to click on ok and it will bring us to the print composer here so under the print composer you can actually see our layout here which is white you can actually change the orientation if you want by going by clicking on on the blank page going to page properties then you can change it from landscape to portrait depending on how you want it to be but i want my i want my map book to be a landscape and i also want my page size to be four then i'll leave everything else the way it is i'm going to make sure that it's a bit big so the first thing i'm going to do is i'm going to add my map so i'm going to click on add item then add map then i'm going to select the area that i want to add my map which is this area here then the next thing i'm going to do is i'm going to make sure that my area has a frame so i'm just going to put a frame around it then the next item i can add is i can add a title so i'm going to add label then i'm going to add it somewhere here i'm going to change the fonts to make it a little bit bigger i'm going to use a bigger phone to the bold then i just center i align my my title the way i want it to be so we'll have different titles for the different maps then after that i can even add another item and i can add the nut arrow somewhere here and i can change my note arrow by going to arrows and changing the arrow to whatever arrow i like then i can also add another item here and i can add the scale bar so i have my scale by here i can do a little bit of customization by adding the number of segments to three so i have my scale then the next thing i want to do is i want to now go to the atlas settings so that i can tell my composer on the atlas settings that i want to put so i'm just going to go to the atlas settings you can actually access it from here or you can actually go to the atlas and then you go to atlas settings so i'm going to select atlas then i want to tell it to generate an atlas then i'm going to do a little bit of configurations here so the coverage layer which is my grid is going to be selected here so i have selected the map grid index as my coverage layer then you can decide to make it hidden sometimes or not hidden when you want to if you want to view it when you make your maps you can actually leave it unchecked then the page name that you're going to be using is the page number then you can sort by maybe say the page number again also then under in our output file you can actually customize it here but i just wanted to have a single file export when possible and then we're going to leave the image export format as a png or you can actually change it to jpeg or any other kind of much you want so now that you have changed our configurations under the atlas we are now going back to go to item properties then under item properties you're going to select seal make sure that you have selected the the map then you're going to scroll down and then you're going to say you want it to be controlled by the atlas logging to make sure that you check this box here you can actually customize it to have margins around the feature by 10 percent or a pre defined scale which is best fit i usually sometimes like using this one so i'm going to select the predefined scale which is the best fit then nothing happens you need to actually activate the preview so that you can actually see how the atlas is going to look like so you're going to go to atlas then you're going to select preview at last and as soon as you select preview atlas you can see now it it now brings the preview of the first uh grid how it's going to look like you can actually scroll through the atlas by going by clicking on this arrow here or just by selecting any kind of uh at any kind of map you want from your atlas so i can say i want maybe the 13th map when i select 13 it will give me that map for that green 13 if i say i want maybe for grid seven it will give me for grid seven i can even just use these arrows it takes me to the next one which is eight takes me to the ninth grade tenth grade and and so so on so so on and so forth so you can actually see our scale has changed i can actually even just delete my scale and then insert a new scale because we have actually changed the scale of our map so i'm going to add item add scale bar then i'm going to add a scale bar that is a bit manageable now so the next thing you want to do is we want to customize our our map title here so that actually it can read whatever region we are working on so i'm going to select the the title again i'm going to delete everything here then i'm going to insert an expression for whatever we want to have as a title so i can even just say map grid index i can't even just say my print index then i can insert an expression go to fields and values then i can either save the page number because you want to have the index number for that so i can just go i'm going to just select the page number to be displayed at that so you can actually now see it's a map index grid 10 if i go to the next one it's map grid index 11 if i now go to the next one it's map grid index 12 and so on and so forth the next thing we're going to do is now we're going to put an insert here but before we put an insert here you'll notice that the grids my grids are actually appearing here and i want them not to appear anymore so i'm just going to go to atlas then i'm going to hide the coverage layer and now my coverage layer is hidden so i can actually just scroll through these maps without having any worry of my grid appearing anywhere so the next thing you want to do is you want to put an insert here so that you can actually be able to now look at the grids here in the inside as we scroll through our map so the grid that will be active will be highlighted you know in the in our insert here so i need to minimize this first then go back to this other side here first then i'm going to now create some groups here so i'm just going to create two groups here now i have the two groups here the first group will be my layers and the second group will be inserts so what i'm going to do is i'm just going to select all these layers here and then i'm going to drop them inside my layer including this file here then for my insert layer i actually need the grid index i'm going to duplicate the layer and i'm going to select take the copy into there second group which is an insert then in my browser panel i'm going to go to the mozambique data i'm going to look for the administrative data of mozambique and i'm going to load admin 0 as part of my insert so before we do any changes now in our insert and start styling our insert i'm actually going to just turn off the layers of the insert then we're going to finalize with our map in the main composer first before we start working on our insert i'm now going to check the base map so that we can actually finalize on our map in the main composer so i'm going to check it and it actually loads our base map here so i'm also going now to go back to the composer hit the refresh button and now i have all the information i need for my map so now that i have everything here i'm going to click on there under the item properties i'm going to click on lock layer because i want to lock the all these layers and also i want to lock their style so no changes will actually appear when now i turn off the layers in the in the in qgis and start working on my inside so i'm now going back to qgis again and then i'm going to now uncheck the layers and i'm going to check the insert and you can see with the insert we just have the two layers of the boundary and the grids so i'm going to move the boundary below then i'm going to now go back to my composer here and then i'm now going to create a new data frame here so to add a new data frame i'm going to click on add item add map then i'm going to add my data frame here which is going to be my insert so i'm just going to add it somewhere here and then release and you know and now we have our insert here then we can scale it down then i'm going to make sure it turns the frame i'm going to select a frame around it now we have our inset and we also have our map here so if if i click on the refresh button nothing happens in our map because we have already locked our styles and all the changes can just actually appear and this here so the next thing you want to do is now that we have our insert we have everything set for map we're actually going to now finalize on our map and finalize it i just want to make sure that when i'm in grid 11 it actually shows here that i'm actually on that grid in my insert so what i'm going to do is now um within these item properties of the of my insert i'm actually going to scroll down and i'm also i'm going to select overviews so i'm going to add an overview by clicking on the green button and this is the overview that is given to me i'm going to select the map too which is the map that you're working on this is the map too as my to show the overviews of them up to here so you can actually see it's a bit faint so i'm going to put a brighter color so it's actually visible and you can now see this is where map grid index 11 is so if i scroll to the next one you will see it changes and also the map changes and if i scroll to the next one you can see it also changes and you can see this is just near the ocean and you can keep on scrolling up to maybe say the 20th map it will just show you how the grids are arranged and how your maps are going to appear so the next thing we are going to do is now now that we have everything ready for our map we are going to now save our map so for us to be able to save our atlas we're going to go to atlas then we're going to now go to you can actually export atlas as an image or export it as a pdf so let's start with the first option by exporting it as a pdf i'm going to click on export as pdf then i'm going to look for where i'm going to save my welcome lecture is going to just save it in data mozambique then i'm going to create a folder and call it atlas then i'm going to save it to mozambique draft at last one then it's a pdf and then click on save then i'm just going to click on save again and it starts saving your atlas maps so this is going to take a little bit of a while our export is complete so let's look at the folder where we saved our atlas and i know our atlas is now ready for printing and we have our atlas here as one pdf which is around 45 mb so i'm going to open it so that you can actually look at our atlas and be able to print it so our class is ready you can see this the first uh map you know atlas and then the second map is this you can actually see some movements on our inside here then the third map then the fourth map parents we'll actually learn how to use the other layer which is the the admin 2 boundary as our coverage layer in another video that's it for today's exercise if you found this video useful and you want to learn more on qgis subscribe to my channel don't forget to give this video a thumbs up otherwise i'm just happy you're here see you in my next video you
Info
Channel: WiseGIS
Views: 3,047
Rating: undefined out of 5
Keywords: qgis, gis, maps, atlas, atlas maps, data driven pages, map book, how to create atlas in qgis, how to create map book in qgis, vector, qgis tutorial, qgis tutorial for beginners, qgis latest version
Id: LB0OsU8cni8
Channel Id: undefined
Length: 19min 53sec (1193 seconds)
Published: Tue Feb 09 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.